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

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