Commit 34cd36df722a5577650461a04b756a34258d7c5c
1 parent
2e87eb49
Exists in
master
and in
1 other branch
[FIX] Adicionando validação na consulta de processo.
Ao informar um número de processo inválido a função exibia um erro após a consulta devido a inexistencia do processo.
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
rn/MdWsSeiProcedimentoRN.php
... | ... | @@ -808,6 +808,9 @@ class MdWsSeiProcedimentoRN extends InfraRN { |
808 | 808 | $protocoloDTO->retStrStaNivelAcessoGlobal(); |
809 | 809 | $protocoloDTO->retDblIdProtocolo(); |
810 | 810 | $protocoloDTO = $protocoloRN->consultarRN0186($protocoloDTO); |
811 | + if(!$protocoloDTO){ | |
812 | + throw new Exception('Processo não encontrado!'); | |
813 | + } | |
811 | 814 | if($protocoloDTO->getStrStaNivelAcessoGlobal() == ProtocoloRN::$NA_SIGILOSO){ |
812 | 815 | $objPesquisaProtocoloDTO = new PesquisaProtocoloDTO(); |
813 | 816 | $objPesquisaProtocoloDTO->setStrStaTipo(ProtocoloRN::$TPP_PROCEDIMENTOS); | ... | ... |