Control de parametros nulos.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user