This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 158884 - NullPointerException at org.netbeans.modules.properties.BundleEditPanel$ModifiedListener.documentModified
Summary: NullPointerException at org.netbeans.modules.properties.BundleEditPanel$Modif...
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-20 11:18 UTC by pribyl
Modified: 2009-03-04 09:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146579


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pribyl 2009-02-20 11:18:54 UTC
Build: NetBeans IDE Dev (Build 200902161401)
VM: Java HotSpot(TM) Server VM, 11.0-b17, Java(TM) SE Runtime Environment, 1.6.0_12-ea-b01
OS: Windows XP, 5.1, x86
User comments: I tried to modify the 'key' value in Bundle.properties file
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at org.netbeans.modules.properties.BundleEditPanel$ModifiedListener.documentModified(BundleEditPanel.java:1120)
        at org.netbeans.modules.properties.BundleEditPanel$ModifiedListener.insertUpdate(BundleEditPanel.java:1112)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
        at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:734)
        at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
        at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
        at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:655)
        at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1351)
        at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:859)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
Comment 1 pribyl 2009-02-20 11:23:31 UTC
To reproduce:

Create new JFrame form and turn Automatic internationalization on. Add some component (e.g. JButton) and select "Open"
from the 'Bundle.properties' popup menu.

Try to modify the "Key" => the Exception is thrown on every attempt  
Comment 2 Alexey Butenko 2009-03-04 08:25:46 UTC
Accepted
Comment 3 Alexey Butenko 2009-03-04 09:06:28 UTC
changeset 52efe216c64b