My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: NPE in TextField.setString()
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  bar...@gmail.com
Closed:  Jan 2010


 
Project Member Reported by bar...@gmail.com, Nov 18, 2009
According to the MIDP API at
http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/T
extField.html#setString(java.lang.String), passing null to
TextField.setString() should empty the field. Instead, a
NullPointerException is thrown (there is a missing null check in the
overloaded method).

Jan 2, 2010
#1 amichair
Here's a patch that fixes it.
fix_textfield_null.diff
520 bytes   View   Download
Jan 6, 2010
Project Member #2 bar...@gmail.com
Fixed in trunk (future version 3.0)
Status: Fixed
Labels: Milestone-3.0

Powered by Google Project Hosting