github-advanced-security[bot] commented on code in PR #1745:
URL: https://github.com/apache/cordova-android/pull/1745#discussion_r1898325901


##########
framework/src/org/apache/cordova/CordovaPreferences.java:
##########
@@ -84,7 +84,7 @@
         name = name.toLowerCase(Locale.ENGLISH);
         String value = prefs.get(name);
         if (value != null) {
-            return Double.valueOf(value);
+            return Double.parseDouble(value);

Review Comment:
   ## Missing catch of NumberFormatException
   
   Potential uncaught 'java.lang.NumberFormatException'.
   
   [Show more 
details](https://github.com/apache/cordova-android/security/code-scanning/106)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to