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 119739 - NPE on save current view to image in Live Results
Summary: NPE on save current view to image in Live Results
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
: 119740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-23 10:27 UTC by Alexander Kouznetsov
Modified: 2008-12-09 11:24 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 Alexander Kouznetsov 2007-10-23 10:31:15 UTC
Product Version: NetBeans IDE Dev (Build 200710221200)
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87
System: Mac OS X version 10.4.10 running on i386; MacCyrillic; ru_RU (nb)

Steps to reproduce:
- Start CPU profiling of Anagram Game application: Entire application, Profile all classes
- Open Live results
- Click Save view to image button. Cancel opened dialog
- Select some other line and/or scroll the window
- Click Save view to image button. 
- RESULT: NPE is thrown. If not, cancel opened dialog, repeat selecting of line and/or scrolling. Then click save view to image button again. It is quite easy 
to reproduce after several attempts.
java.lang.NullPointerException
	at org.netbeans.modules.profiler.ui.ImagePreviewPanel$1.run(ImagePreviewPanel.java:116)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Alexander Kouznetsov 2007-10-23 10:36:46 UTC
*** Issue 119740 has been marked as a duplicate of this issue. ***
Comment 2 Jiri Sedlacek 2007-10-23 12:50:25 UTC
Fixed in trunk.

/cvs/profiler/modules/main/src/org/netbeans/modules/profiler/ui/ImagePreviewPanel.java,v  <--  ImagePreviewPanel.java
new revision: 1.2; previous revision: 1.1
Comment 3 Rashid Urusov 2008-12-09 11:24:29 UTC
VERIFIED in build 200812080201