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 17013 - NPE when debugging netbeans in netbeans
Summary: NPE when debugging netbeans in netbeans
Status: CLOSED DUPLICATE of bug 16914
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-26 10:44 UTC by Jaroslav Tulach
Modified: 2001-10-29 15:48 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 Jaroslav Tulach 2001-10-26 10:44:25 UTC
Just compile netbeans with ant script 

cd nbbuild
ant

and run in in debug mode. Attach to them from another machine. You will see that
it does not work well. 


Fri Oct 26 11:38:48 CEST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at
org.netbeans.modules.debugger.support.java.JUtils.getIdentifier(JUtils.java:153)
        at
org.netbeans.modules.debugger.support.java.ToolTipAnnotation.run(ToolTipAnnotation.java:72)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:750)
        at
org.netbeans.modules.debugger.support.java.ToolTipAnnotation.getShortDescription(ToolTipAnnotation.java:57)
        at org.netbeans.modules.editor.NbToolTip$Request.run(NbToolTip.java:210)
        at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:175)
        at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:59)
        at
org.netbeans.modules.editor.NbEditorKit$NbBuildToolTipAction.actionPerformed(NbEditorKit.java:461)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:133)
        at
org.netbeans.editor.ext.ToolTipSupport.updateToolTip(ToolTipSupport.java:321)
        at
org.netbeans.editor.ext.ToolTipSupport.setToolTipVisible(ToolTipSupport.java:367)
        at
org.netbeans.editor.ext.ToolTipSupport.actionPerformed(ToolTipSupport.java:570)
        at
org.netbeans.editor.WeakTimerListener.actionPerformed(WeakTimerListener.java:57)
        at javax.swing.Timer.fireActionPerformed(Timer.java:150)
        at javax.swing.Timer$DoPostEvent.run(Timer.java:108)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 Karel Serin 2001-10-26 14:16:59 UTC
There is no need to debugging NB in NB to reproduce it.
NPE is thrown when evaluating Tooltips.
Comment 2 Karel Serin 2001-10-26 14:24:06 UTC
Netbeans build 20011026
========================

Steps to reproduce:
-------------------

1. Open some app. e.g. MemoryView
2. Set breakpoint on line 96  (int taken = (int) (total-free))
3. Start the Debugging session
4. move over the variable taken
5. NPE is thrown 
Comment 3 Karel Serin 2001-10-26 14:31:42 UTC

*** This issue has been marked as a duplicate of 16914 ***
Comment 4 Jan Stola 2001-10-29 15:48:57 UTC
Duplicate -> Closed.