diff --git a/pom.xml b/pom.xml index e18f578dc..cee33759d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ModelWeb - 1.113.0 + 1.114.0 diff --git a/src/com/rjconsultores/ventaboletos/service/impl/VoucherServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/VoucherServiceImpl.java index c3dbc9022..0b9d5de0e 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/VoucherServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/VoucherServiceImpl.java @@ -6,6 +6,7 @@ import java.util.Calendar; import java.util.Date; import java.util.List; +import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -120,7 +121,7 @@ public class VoucherServiceImpl implements VoucherService { for (Voucher vou : dados) { VoucherVO vo; - if( !vou.getContrato().getNumContrato().equals(numContrato)) { + if( StringUtils.isNotEmpty(numContrato) && !vou.getContrato().getNumContrato().equals(numContrato)) { vo = VoucherVO.converteVoucher(vou); vo.setMensagem(Labels.getLabel("legalizacaoMassivaController.MSG.contratoDiferente")); retorno.add(vo);