diff options
Diffstat (limited to 'libjava/classpath/javax/swing/text/DefaultFormatter.java')
-rw-r--r-- | libjava/classpath/javax/swing/text/DefaultFormatter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libjava/classpath/javax/swing/text/DefaultFormatter.java b/libjava/classpath/javax/swing/text/DefaultFormatter.java index f9e0f10e654..493699dacba 100644 --- a/libjava/classpath/javax/swing/text/DefaultFormatter.java +++ b/libjava/classpath/javax/swing/text/DefaultFormatter.java @@ -400,6 +400,8 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter public String valueToString(Object value) throws ParseException { + if (value == null) + return ""; return value.toString(); } |