When using bindings, it is easy to end up in a situation where a null string is passed to a text control (and would be very cumbersome to construct some binding to avoid this). The TextProperty in TextInputControl does not handle this situation well, as it passes the null string directly to the Content, which throws an exception. I think it is valid for Content to require a non-null String, because it is an implementation class and null would indicate an error (such as this one) in our own code. However, the text property needs to handle null strings gracefully. This is probably about a 1 line fix.
- duplicates
-
JDK-8114035 TextArea.setText() fails when it is called with a null parameter
-
- Closed
-
-
JDK-8128514 PasswordField.setText(null) leads to NPE
-
- Closed
-
-
JDK-8128573 TextArea: IllegalArgumentException while binding text to property with null value
-
- Closed
-
- relates to
-
JDK-8127905 NullPointerException in TextArea, when textProperty is bound
-
- Closed
-