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) {
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user