------- Comment #1 from hendrich at informatik dot uni-hamburg dot de  
2005-11-16 12:32 -------
to whom it may concern:

I am getting the following NPE when running one of my test apps with
classpath cvs head (2005.11.16) on jamvm 1.3.2 linux-x86:

java.lang.NullPointerException
   at javax.swing.text.PlainDocument.insertString (PlainDocument.java:238)
   at javax.swing.text.AbstractDocument.replace (AbstractDocument.java:709)
   at javax.swing.text.JTextComponent.setText (JTextComponent.java:977)
   at hades.gui.JStatusPanel.setFilename (JStatusPanel.java:78)
   ...

This calls JTextComponent.setText(null), which works fine on the JDKs...
I guess we need an additional null check here.

- Norman


-- 

hendrich at informatik dot uni-hamburg dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|NPE in                      |NPE in
                   |                            |PlainDocument.insertString


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24890



_______________________________________________
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath
  • [Bug swing/24890] New: NPE ... hendrich at informatik dot uni-hamburg dot de
    • [Bug swing/24890] NPE i... hendrich at informatik dot uni-hamburg dot de

Reply via email to