diff --git a/pom.xml b/pom.xml index cb3c63d20..e9e041a6f 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ModelWeb - 1.16.0 + 1.16.1 diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java index 6b70b0961..f9a55b398 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java @@ -1180,6 +1180,10 @@ public class CorridaServiceImpl implements CorridaService { BigDecimal valorTaxaEmbarque= tarifa!=null ? tarifa.getImportetaxaembarque() : null ; BigDecimal valorPedagio = tarifa!=null ? tarifa.getImportepedagio() : null ; Long tempoReserva = null; + if(reservaEspecialCliente.getClienteId() ==null) { + log.error("Cliente id não foi cadastrado (null) para reservaId=" + reservaEspecialCliente.getReservaEspecialClienteId() + " da corrida_id =" + reservaEspecialCliente.getCorridaId() ); + continue; + } Cliente cliente = clienteService.obtenerID(reservaEspecialCliente.getClienteId().intValue()); if(cliente ==null || !Boolean.TRUE.equals(cliente.getActivo())) { continue;