tamdinh / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

NPE in TextField.setString() #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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).

Original issue reported on code.google.com by bar...@gmail.com on 18 Nov 2009 at 11:12

GoogleCodeExporter commented 8 years ago
Here's a patch that fixes it.

Original comment by amichair on 3 Jan 2010 at 2:11

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk (future version 3.0)

Original comment by bar...@gmail.com on 6 Jan 2010 at 9:42