From 90cc564ddf7e79d84b699953f417e2ecc408bf9b Mon Sep 17 00:00:00 2001 From: leonardo Date: Wed, 4 Jan 2017 17:51:02 +0000 Subject: [PATCH] bug #7788 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64523 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index 396b0da2f..3e5181613 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -95,7 +95,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { entidad.setActivo(Boolean.TRUE); Exception respEx = null; - if (!constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")){ + Constante desativaTotvs = constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO"); + if (desativaTotvs != null && !desativaTotvs.getValorconstante().equals("1")){ if (ApplicationProperties.getInstance().integracionTotvs()) { try { @@ -329,8 +330,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { entidad.setActivo(Boolean.TRUE); Exception respEx = null; - - if (!constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")){ + Constante desativaTotvs = constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO"); + if (desativaTotvs != null && !desativaTotvs.getValorconstante().equals("1")){ if (ApplicationProperties.getInstance().integracionTotvs()) { try {