diff --git a/authentication/authentication-core/src/main/java/io/mosip/authentication/core/util/IdTypeUtil.java b/authentication/authentication-core/src/main/java/io/mosip/authentication/core/util/IdTypeUtil.java index 7cb5386510a..3e3c1b92aaf 100644 --- a/authentication/authentication-core/src/main/java/io/mosip/authentication/core/util/IdTypeUtil.java +++ b/authentication/authentication-core/src/main/java/io/mosip/authentication/core/util/IdTypeUtil.java @@ -41,7 +41,7 @@ public boolean validateUin(String uin) { return idValidator.validateUIN(uin); else return false; - } catch (InvalidIDException | IdAuthenticationBusinessException e) { + } catch (InvalidIDException | IdAuthenticationBusinessException | NumberFormatException e) { return false; } } @@ -52,7 +52,7 @@ public boolean validateVid(String vid) { return idValidator.validateVID(vid); else return false; - } catch (InvalidIDException | IdAuthenticationBusinessException e) { + } catch (InvalidIDException | IdAuthenticationBusinessException | NumberFormatException e) { return false; } }