Commit b9232a76485f3d637fd4778c7706a8b8d5b1135b
1 parent
e96abad8
Exists in
master
and in
1 other branch
Problema ao formatar número de processo, o null não pode ser tratado como erro.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/main/java/br/gov/ans/integracao/sei/utils/Util.java
| ... | ... | @@ -59,7 +59,7 @@ public class Util { |
| 59 | 59 | |
| 60 | 60 | public static String formatarNumeroProcesso(String numero) throws Exception{ |
| 61 | 61 | if(numero == null){ |
| 62 | - throw new BusinessException("Número de processo inválido."); | |
| 62 | + return null; | |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | if(!StringUtils.isNumeric(numero)){ | ... | ... |