Bug 234383 - NullPointerException at org.netbeans.modules.profiler.actions.CompareSnapshotsAction$SelectExternalSnapshotsPanel$4.doInBackground
NullPointerException at org.netbeans.modules.profiler.actions.CompareSnapshot...
Product: profiler
Classification: Unclassified
Component: Base
All All
: P3 (vote)
: 7.4
Assigned To: Jiri Sedlacek
Depends on:
  Show dependency treegraph
Reported: 2013-08-14 12:25 UTC by Ondrej Brejla
Modified: 2013-08-15 10:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT

stacktrace (411 bytes, text/plain)
2013-08-14 12:25 UTC, Ondrej Brejla
Frist snapshot (40.64 KB, application/octet-stream)
2013-08-14 13:32 UTC, Ondrej Brejla
Second snapshot (59.94 KB, application/octet-stream)
2013-08-14 13:32 UTC, Ondrej Brejla

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Brejla 2013-08-14 12:25:19 UTC
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.

   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)
Comment 1 Ondrej Brejla 2013-08-14 12:25:21 UTC
Created attachment 138683 [details]
Comment 2 Jiri Sedlacek 2013-08-14 13:31:10 UTC
Can you please attach the two snapshots you're comparing? Thanks!
Comment 3 Ondrej Brejla 2013-08-14 13:32:33 UTC
Created attachment 138689 [details]
Frist snapshot
Comment 4 Ondrej Brejla 2013-08-14 13:32:48 UTC
Created attachment 138690 [details]
Second snapshot
Comment 5 Jiri Sedlacek 2013-08-14 13:40:09 UTC
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.
Comment 6 Ondrej Brejla 2013-08-14 13:45:36 UTC
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 ;)
Comment 7 Jiri Sedlacek 2013-08-14 14:03:20 UTC
Only .nps snapshots can be compared, removed the All Files filter.

Fixed by http://hg.netbeans.org/profiler-main/rev/7cad435aa7da.
Comment 8 Jiri Sedlacek 2013-08-15 10:33:32 UTC
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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo