[ http://issues.apache.org/jira/browse/HARMONY-2523?page=all ]
Alexey A. Ivanov updated HARMONY-2523:
--------------------------------------
Attachment: H2523-j.s.t.DefaultFormatter.patch
Fixes the problem. The actual fix:
- Math.max(length, text.length()));
+ Math.max(length, text != null ? text.length() : 0));
Also the patch resolves all compiler warnings for DefaultFormatter.
> [classlib][swing] j.s.text.JFormattedTextField(Object) throws NPE when Object.toString()
== null
> ------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2523
> URL: http://issues.apache.org/jira/browse/HARMONY-2523
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Priority: Minor
> Attachments: H2523-j.s.t.DefaultFormatter.patch, H2523-JFormattedTextFieldTest.patch
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|