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 115832 - NPE at DragManager$DragItem$OneSideScaleMode.paint
Summary: NPE at DragManager$DragItem$OneSideScaleMode.paint
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL: http://statistics.netbeans.org/except...
Keywords:
: 105847 118657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-18 12:39 UTC by pzajac
Modified: 2007-10-23 14:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 4157


Attachments
stacktrace (2.08 KB, text/plain)
2007-10-12 21:24 UTC, gcappuccilli
Details
stacktrace (2.08 KB, text/plain)
2007-10-12 21:24 UTC, gcappuccilli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-09-18 12:39:23 UTC
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03
OS: Windows XP, 5.1, x86
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at
org.netbeans.modules.apisupport.project.ui.customizer.DragManager$DragItem$OneSideScaleMode.paint(DragManager.java:509)
        at org.netbeans.modules.apisupport.project.ui.customizer.DragManager$DragItem.paint(DragManager.java:345)
        at org.netbeans.modules.apisupport.project.ui.customizer.DragManager.paint(DragManager.java:112)
        at
org.netbeans.modules.apisupport.project.ui.customizer.SplashComponentPreview.paint(SplashComponentPreview.java:282)
        at javax.swing.JComponent.paintChildren(JComponent.java:843)
        at javax.swing.JComponent.paint(JComponent.java:1015)
        at javax.swing.JViewport.paint(JViewport.java:728)
        at javax.swing.JComponent.paintChildren(JComponent.java:843)
        at javax.swing.JComponent.paint(JComponent.java:1015)
        at javax.swing.JComponent.paintChildren(JComponent.java:843)
Comment 1 Jesse Glick 2007-09-18 17:25:28 UTC
Version 1.9:

assert rec != null;
// ...
Rectangle2D rec2d = rec.getBounds2D();

Race condition?
Comment 2 gcappuccilli 2007-10-12 21:24:11 UTC
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
VM: Java HotSpot(TM) Client VM, 1.5.0_07-87
OS: Mac OS X, 10.4.10, ppc

User Comments: 
Comment 3 gcappuccilli 2007-10-12 21:24:20 UTC
Created attachment 50862 [details]
stacktrace
Comment 4 gcappuccilli 2007-10-12 21:24:35 UTC
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
VM: Java HotSpot(TM) Client VM, 1.5.0_07-87
OS: Mac OS X, 10.4.10, ppc

User Comments: 
Comment 5 gcappuccilli 2007-10-12 21:24:42 UTC
Created attachment 50863 [details]
stacktrace
Comment 6 pzajac 2007-10-13 17:05:59 UTC
Please fix it to NB 6.0. 
Comment 7 rmatous 2007-10-15 13:59:51 UTC
*** Issue 105847 has been marked as a duplicate of this issue. ***
Comment 8 rmatous 2007-10-15 14:06:08 UTC
Probably no race condition because Issue 105847 reports failing assert, so probably not initialized rec may happen.

Hopefully fixed: 
/cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/DragManager.java,v  <--  new revision:
1.12; previous revision: 1.11
Comment 9 rmatous 2007-10-15 16:42:59 UTC
6.0
Comment 10 rmatous 2007-10-23 14:59:35 UTC
*** Issue 118657 has been marked as a duplicate of this issue. ***