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 150328

Summary: [65cat] NullPointerException at org.openide.text.Annotation.attach
Product: python Reporter: rajivderas <rajivderas>
Component: DebuggerAssignee: jymen <jymen>
Status: VERIFIED FIXED    
Severity: blocker CC: mslama, rajivderas, sunbiz
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=128658
Issue Type: DEFECT Exception Reporter: 128658
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description rajivderas 2008-10-16 07:16:04 UTC
Build: NetBeans IDE Dev (Build 20081015193613)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.NullPointerException
        at org.openide.text.Annotation.attach(Annotation.java:117)
        at org.netbeans.modules.python.debugger.DebuggerAnnotation.<init>(DebuggerAnnotation.java:60)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.addAnnotation(BreakpointAnnotationListener.java:81)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.breakpointAdded(BreakpointAnnotationListener.java:52)
        at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:791)
        at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:939)
Comment 1 rajivderas 2008-10-16 07:16:13 UTC
Created attachment 71930 [details]
stacktrace
Comment 2 rajivderas 2008-10-16 08:26:11 UTC
Build: NetBeans IDE Dev (Build 20081015193613)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.openide.text.Annotation.attach(Annotation.java:117)
        at org.netbeans.modules.python.debugger.DebuggerAnnotation.<init>(DebuggerAnnotation.java:60)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.addAnnotation(BreakpointAnnotationListener.java:81)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.breakpointAdded(BreakpointAnnotationListener.java:52)
        at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:791)
        at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:939)
Comment 3 rajivderas 2008-10-16 08:26:21 UTC
Created attachment 71938 [details]
stacktrace
Comment 4 rajivderas 2008-10-17 14:09:30 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081016235259)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 
was trying to debug a py file

Stacktrace: 
java.lang.NullPointerException
        at org.openide.text.Annotation.attach(Annotation.java:117)
        at org.netbeans.modules.python.debugger.DebuggerAnnotation.<init>(DebuggerAnnotation.java:60)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.addAnnotation(BreakpointAnnotationListener.java:81)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.breakpointAdded(BreakpointAnnotationListener.java:52)
        at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:791)
        at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:939)
Comment 5 rajivderas 2008-10-17 14:09:44 UTC
Created attachment 72119 [details]
stacktrace
Comment 6 sunbiz 2008-10-27 11:02:31 UTC
Build: NetBeans IDE 6.5 RC2 (Build 20081024150422)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 
Clicked on the line numbers to add a breakpoint after debugging finished and got this exception

Stacktrace: 
java.lang.NullPointerException
        at org.openide.text.Annotation.attach(Annotation.java:117)
        at org.netbeans.modules.python.debugger.DebuggerAnnotation.<init>(DebuggerAnnotation.java:60)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.addAnnotation(BreakpointAnnotationListener.java:81)
        at org.netbeans.modules.python.debugger.breakpoints.BreakpointAnnotationListener.breakpointAdded(BreakpointAnnotationListener.java:52)
        at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:791)
        at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:939)
Comment 7 sunbiz 2008-10-27 11:02:41 UTC
Created attachment 72671 [details]
stacktrace
Comment 8 Lukas Hasik 2008-10-27 11:09:50 UTC
reassigning to python, you are probably passing null to org.openide.text.Annotation.attach and then it fails on
attached.addAnnotation(this);
Comment 9 mslama 2008-10-27 11:43:06 UTC
Null parameter is not allowed in Annotation.attach.
Comment 10 jymen 2008-10-27 22:38:10 UTC
fixed build #109 
Comment 11 Peter Lam 2008-12-15 05:32:23 UTC
has already verified in EA testing.