Menu

#99 NPE in TextField.setString()

open
nobody
None
5
2009-05-18
2009-05-18
amichair
No

According to the MIDP API at http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/TextField.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).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB