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 100319-48442a044a29) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Windows Server 2008 User Comments: sunbiz: Took snapshot of thread dump. Saving current view as Image and select "Computer" instead of any drive or folder, throws this exception Stacktrace: java.lang.NullPointerException at javax.imageio.ImageIO.write(ImageIO.java:1523) at org.netbeans.modules.profiler.SaveViewAction$1.run(SaveViewAction.java:210) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1356) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1894)
Created attachment 95407 [details] stacktrace
Should be simple to provide a fix through a correct error dialog as done in vmd.midp
Created attachment 95410 [details] fixes NPE
Jirko, can you please review the patch and integrate it if you find it good enough? Thanks!
Thanks for the patch! Applied with minor cleanup. Fixed for 6.9, pushed into profiler-main. http://hg.netbeans.org/profiler-main/rev/374a8ce6d493
More cleanup - http://hg.netbeans.org/profiler-main/rev/ed0c723acbab
Great, thank you Jirko for review&integration and Saptarshi for the patch!
(In reply to comment #6) > More cleanup - http://hg.netbeans.org/profiler-main/rev/ed0c723acbab Thanks Jirko... and Jiri for the constant enthusiasm and support
Integrated into 'main-golden', will be available in build *201003230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/374a8ce6d493 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #182343 - check for invalid target in SaveViewAction