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.
Build: NetBeans IDE Dev (Build 20130814-db38a80543e8) VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15 OS: Linux User Comments: obrejla: Comparing 2 snapshots (.npss). GUEST: Trying to compare to npss snashots. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.actions.CompareSnapshotsAction$SelectExternalSnapshotsPanel$4.doInBackground(CompareSnapshotsAction.java:339) at org.netbeans.lib.profiler.ui.SwingWorker$2.run(SwingWorker.java:159) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Created attachment 138683 [details] stacktrace
Can you please attach the two snapshots you're comparing? Thanks!
Created attachment 138689 [details] Frist snapshot
Created attachment 138690 [details] Second snapshot
Reproduced, thanks! The main problem is that .npss files are not meant to be compared. You should save them as .nps snapshots for the comparison.
Yes I thought that ;) But in 7.3.1 if one slected two npss files, the OK button was disabled. In 7.4 dev it's enabled. Maybe it will help. And some more yellow warning perhaps ;)
Only .nps snapshots can be compared, removed the All Files filter. Fixed by http://hg.netbeans.org/profiler-main/rev/7cad435aa7da.
The NPE can still be thrown for invalid .nps snapshots (or files renamed to .nps). Cornercases fixed by http://hg.netbeans.org/profiler-main/rev/777fdb5db3ea.