diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index dd8cc274d..40b8ee50d 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -275,8 +275,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { tel = puntoVenta.getNumtelefonouno(); } - String email = puntoVenta.getDescCorreo(); - String fax = puntoVenta.getNumfax(); + String email = puntoVenta.getDescCorreo() == null ? "" : puntoVenta.getDescCorreo(); + String fax = puntoVenta.getNumfax() == null ? "" : puntoVenta.getNumfax(); String inscr = puntoVenta.getNumIEPuntoVenta(); String inscrm = InscricaoMunicipal.ISENTO.name(); @@ -293,8 +293,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { tipoPessoa = TipoPessoa.J.name(); } - String obs = puntoVenta.getComentarios(); - obs = StringUtils.isBlank(obs) ? "sem obs." : obs; + String obs = StringUtils.isBlank(puntoVenta.getComentarios()) ? "sem obs." : puntoVenta.getComentarios(); String conta = "1110101001001"; // DEVE SER REVISADO COM A GUANABARA @@ -309,7 +308,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { agencia = agencia == null ? null : agenciaComp[0]; dgverag = agencia == null ? null : agenciaComp[1]; } catch (Exception e) { - tel = puntoVenta.getAgenciaId().getNumagencia(); + agencia = puntoVenta.getAgenciaId() == null ? "" : puntoVenta.getAgenciaId().getNumagencia(); } String banco = puntoVenta.getAgenciaId().getInstiFinanceiraId() == null ? "" : puntoVenta.getAgenciaId().getInstiFinanceiraId().getCodigo();