Menu

#22 TextField::setString() throwing NullPointerException

open
nobody
None
5
2008-02-22
2007-10-29
littleram
No

According to the official MIDP2 API for TextField class:

public void setString(String text)

- Sets the contents of the TextField as a string value, replacing the previous contents.

Parameters:
text - the new value of the TextField, or null if the TextField is to be made empty

microemulator was throwing NullPointerException when null was being passed to setString() method. The patch (attached) now fixes this.

Discussion

  • littleram

    littleram - 2007-10-29

    Fixed TextField.java

     
  • Bartek Teodorczyk

    • milestone: 769195 -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.