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 162513 - NullPointerException at org.netbeans.modules.properties.PropertiesOpen$Environment.<init>
Summary: NullPointerException at org.netbeans.modules.properties.PropertiesOpen$Enviro...
Status: RESOLVED WORKSFORME
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:
: 162531 162532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-13 15:40 UTC by shreig
Modified: 2009-04-14 09:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 149408


Attachments
stacktrace (4.50 KB, text/plain)
2009-04-13 15:40 UTC, shreig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shreig 2009-04-13 15:40:02 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments:
shreig: Closing a file that no longer exists.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.properties.PropertiesOpen$Environment.<init>(PropertiesOpen.java:436)
        at org.netbeans.modules.properties.PropertiesOpen.<init>(PropertiesOpen.java:146)
        at org.netbeans.modules.properties.MultiBundleStructure.getOpenSupport(MultiBundleStructure.java:350)
        at org.netbeans.modules.properties.PropertiesDataObject.getOpenSupport(PropertiesDataObject.java:310)
        at org.netbeans.modules.properties.PropertiesEditorSupport.hasOpenedTableComponent(PropertiesEditorSupport.java:680)
        at org.netbeans.modules.properties.PropertiesEditorSupport.canClose(PropertiesEditorSupport.java:171)
Comment 1 shreig 2009-04-13 15:40:06 UTC
Created attachment 79982 [details]
stacktrace
Comment 2 Alexey Butenko 2009-04-13 15:52:23 UTC
Could you provide steps to reproduce this issue.
I'm tried to delete file externally, but after switching to IDE, editor with deleted file
automatically closed. So I'm not able to reproduce it.
Comment 3 Alexey Butenko 2009-04-14 09:04:31 UTC
*** Issue 162532 has been marked as a duplicate of this issue. ***
Comment 4 Alexey Butenko 2009-04-14 09:05:13 UTC
*** Issue 162531 has been marked as a duplicate of this issue. ***
Comment 5 Alexey Butenko 2009-04-14 09:12:15 UTC
I'm not able to reproduce neither this exception nor duplicates issues exceptions.
I tried on Mac, Windows and Ubuntu, on every platform editor close without any exceptions after deleting
properties files externally => WORKSFORME.

Try to use recent builds with clean userdir.
Reopen with reproducible  test case if needed, or submit your project to this issue.