fixes bug#AL-2254

Tratamento null pointer exception
master
Gleison da Cruz 2023-02-28 12:01:58 -03:00
parent b4cb921834
commit 5e7da0303f
2 changed files with 16 additions and 10 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.0.61</version>
<version>1.0.62</version>
<packaging>war</packaging>
<properties>

View File

@ -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);
}
}