Control de parametros nulos.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-20 00:04:58 +01:00
parent aeb1d300a4
commit 1dff9b09e8

View File

@@ -70,6 +70,9 @@ public class ValidationUtils {
public static boolean checkIfNifAlreadyRegistered(CommonFacadeRemote remoteSvc, UserType userType, String nif, Integer id) {
boolean nifExists = false;
if (userType == null || remoteSvc == null)
return nifExists;
switch (userType) {
case ADMINISTRATOR:
break;