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 202992 - NPE when automatically saving a snapshot being closed
Summary: NPE when automatically saving a snapshot being closed
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 15:20 UTC by Jiri Sedlacek
Modified: 2011-10-07 14:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2011-10-03 15:20:54 UTC
Try to close an unsaved profiler snapshot, select Do Not Save Again and choose Yes. NPE is being thrown for any other unsaved snapshots being automatically saved on close:

java.lang.NullPointerException
	at o.n.m.profiler.SnapshotResultsWindow.updateSaveState(SnapshotResultsWindow.java:403)
	at o.n.m.profiler.SnapshotResultsWindow.access$000(SnapshotResultsWindow.java:77)
	at o.n.m.profiler.SnapshotResultsWindow$SnapshotListener.snapshotSaved(SnapshotResultsWindow.java:101)
	at o.n.m.profiler.ResultsManager$9.run(ResultsManager.java:930)
	...
Comment 1 Jiri Sedlacek 2011-10-03 15:37:08 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/351e453a4630.
Comment 2 Quality Engineering 2011-10-07 14:36:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/351e453a4630
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #202992 - do not update saved state of an already closed snapshot