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 184927 - NullPointerException at org.netbeans.modules.properties.PropertiesOpen$ModifiedListener.saveDocument
Summary: NullPointerException at org.netbeans.modules.properties.PropertiesOpen$Modifi...
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-25 11:34 UTC by patrick17
Modified: 2010-04-28 16:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 168550


Attachments
stacktrace (6.17 KB, text/plain)
2010-04-25 11:34 UTC, patrick17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description patrick17 2010-04-25 11:34:48 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.properties.PropertiesOpen$ModifiedListener.saveDocument(PropertiesOpen.java:824)
   at org.netbeans.modules.properties.PropertiesOpen$ModifiedListener.save(PropertiesOpen.java:806)
   at org.netbeans.modules.swingapp.DesignResourceMap.save(DesignResourceMap.java:507)
   at org.netbeans.modules.swingapp.DesignResourceMap.save(DesignResourceMap.java:496)
   at org.netbeans.modules.swingapp.ResourceServiceImpl.autoSave(ResourceServiceImpl.java:253)
   at org.netbeans.modules.form.ResourceSupport$ModelListener.formChanged(ResourceSupport.java:1241)
Comment 1 patrick17 2010-04-25 11:34:53 UTC
Created attachment 97973 [details]
stacktrace
Comment 2 Victor Vasilyev 2010-04-28 14:51:54 UTC
The method org.netbeans.modules.properties.BundleStructure.getNthEntry(int index) may return null. This case should be checked in the caller method org.netbeans.modules.properties.PropertiesOpen$ModifiedListener.saveDocument().
Comment 3 Victor Vasilyev 2010-04-28 16:22:55 UTC
Fixed
http://hg.netbeans.org/main/rev/30cf38aba486