From fed90e5ed78ba24d86f452e3e6ca6650de216254 Mon Sep 17 00:00:00 2001 From: Muralitharan K Date: Tue, 28 May 2024 09:55:56 +0530 Subject: [PATCH] Numberformatexception handling --- .../java/io/mosip/authentication/core/util/IdTypeUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }