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 113387 - NPE on Save Thread Details to Image
Summary: NPE on Save Thread Details to Image
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: issues@profiler
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-08-21 17:08 UTC by Alexander Kouznetsov
Modified: 2007-10-12 19:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (984 bytes, text/plain)
2007-08-21 17:09 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-08-21 17:08:52 UTC
Product Version: NetBeans IDE Dev (Build 200708150158) 
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 
System: SunOS version 5.10 running on sparc; ISO8859-1; en_US (nb)

Performed steps:
- Played with Threads for Anagrams Application
- Selected several threads to show their Details
- Pressed Save Current View to Image button
- RESULT:
java.lang.NullPointerException
	at javax.swing.JViewport.paint(JViewport.java:718)
	at javax.swing.JComponent.print(JComponent.java:1168)
	at javax.swing.JComponent.printAll(JComponent.java:1114)
	at com.sun.tools.profiler.ui.UIUtils.createGeneralComponentScreenshot(UIUtils.java:295)
        ...

The issue doesn't seem to be reproducible. IDE was not harmed.
Comment 1 Alexander Kouznetsov 2007-08-21 17:09:36 UTC
Created attachment 46987 [details]
Exception
Comment 2 Jiri Sedlacek 2007-10-12 19:00:59 UTC
Most likely caused by the fact that UI code runs outside the AWT thread. Moved to AWT, should be fixed.

Fixed for Beta2.