Fixed: Fix Default or Empty Catch block in Java and Groovy files
While working on I stumbled upon this by chance.
It's unlikely that this NumberFormatException is ever caught, but not a reason
to swallow it.
I checked there are no other swallowed exceptions in Groovy files.
@@ -69,7 +69,8 @@ context.curFindString = curFindString
try {
viewSize = Integer.valueOf((String)parameters.get("VIEW_SIZE")).intValue()
} catch (NumberFormatException nfe) {
-
+ Debug.logError(nfe, "Caught an exception : " + nfe.toString(), "GetContentLookupList.groovy")
+ errMsgList.add("Entered value is non-numeric for numeric field: " + field.getName())
}
context.viewSize = viewSize
