RFR: 8375016: Several catch blocks for NullPointerExceptions exist in the codebase [v4]

Christopher Schnick duke at openjdk.org
Thu Jan 15 17:51:27 UTC 2026


On Wed, 14 Jan 2026 19:08:10 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> modules/javafx.base/src/main/java/com/sun/javafx/binding/SelectBinding.java line 199:
>> 
>>> 197:                 return numberVal.doubleValue();
>>> 198:             } else if (val != null) {
>>> 199:                 Logging.getLogger().warning("Value of select-binding has wrong type, returning default value.");
>> 
>> minor: I would re-phrase it as something like "Expecting a Number value" (here and elsewhere)
>
> Exception message says "expecting XXX" in Bindings, but not here, I am just curious why?

I updated the log messages in SelectBinding to be consistent with the others

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2032#discussion_r2695381928


More information about the openjfx-dev mailing list