[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/24890] NPE in PlainDocument.insertString
From: |
hendrich at informatik dot uni-hamburg dot de |
Subject: |
[Bug swing/24890] NPE in PlainDocument.insertString |
Date: |
16 Nov 2005 12:32:36 -0000 |
------- 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 swing/24890] New: NPE in, hendrich at informatik dot uni-hamburg dot de, 2005/11/16
- [Bug swing/24890] NPE in PlainDocument.insertString,
hendrich at informatik dot uni-hamburg dot de <=
- [Bug swing/24890] NPE in PlainDocument.insertString, fitzsim at redhat dot com, 2005/11/16
- [Bug swing/24890] NPE in PlainDocument.insertString, abalkiss at redhat dot com, 2005/11/16
- [Bug swing/24890] NPE in PlainDocument.insertString, cvs-commit at developer dot classpath dot org, 2005/11/16
- [Bug swing/24890] NPE in PlainDocument.insertString, abalkiss at redhat dot com, 2005/11/16
- [Bug swing/24890] NPE in PlainDocument.insertString, pinskia at gcc dot gnu dot org, 2005/11/16