diff --git a/1.sources/MyHealth/src/managedbean/common/ValidationUtils.java b/1.sources/MyHealth/src/managedbean/common/ValidationUtils.java index 8d90abd..e66ae0a 100644 --- a/1.sources/MyHealth/src/managedbean/common/ValidationUtils.java +++ b/1.sources/MyHealth/src/managedbean/common/ValidationUtils.java @@ -69,7 +69,10 @@ 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;