diff --git a/pom.xml b/pom.xml
index 7625f8570..706fb6329 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
br.com.rjconsultores
ventaboletosadm
- 1.0.61
+ 1.0.62
war
diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java
index 491a3d162..fbbda3948 100644
--- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java
+++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java
@@ -1922,20 +1922,26 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
RetornoStoreVO retornoStoreVO = MercadoPagoService.getInstance().retornarStoreMercadoPago(
txtUserIdMercadoPago.getValue(), txtUrlApiMercadoPago.getValue(), txtTokenMercadoPago.getValue());
- for (StoreVO vo : retornoStoreVO.getResults()) {
- if (store != null && vo.toString().equals(store)) {
- this.storeVO = vo;
+
+ if (retornoStoreVO != null){
+ for (StoreVO vo : retornoStoreVO.getResults()) {
+ if (store != null && vo.toString().equals(store)) {
+ this.storeVO = vo;
+ }
+ lsStoreMercadoPago.add(vo);
}
- lsStoreMercadoPago.add(vo);
}
-
+
RetornoPosVO retornoPosVO = MercadoPagoService.getInstance()
.retornarPosMercadoPago(txtUrlApiMercadoPago.getValue(), txtTokenMercadoPago.getValue());
- for (PosVO vo : retornoPosVO.getResults()) {
- if (pos != null && vo.toString().equals(pos)) {
- this.posVO = vo;
+
+ if (retornoPosVO != null) {
+ for (PosVO vo : retornoPosVO.getResults()) {
+ if (pos != null && vo.toString().equals(pos)) {
+ this.posVO = vo;
+ }
+ lsPosMercadoPago.add(vo);
}
- lsPosMercadoPago.add(vo);
}
}