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 50330 - NPE after Debug "fix" when program is stopped at beakpoint
Summary: NPE after Debug "fix" when program is stopped at beakpoint
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 12:44 UTC by wulgar
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
dead IDE (30.66 KB, image/jpeg)
2004-10-13 20:32 UTC, wulgar
Details
thread dump (22.66 KB, text/plain)
2004-10-13 20:33 UTC, wulgar
Details
messages.log - there is another exception - i'll serarch issuezilla if i must fill another issue (9.88 KB, text/plain)
2004-10-13 20:36 UTC, wulgar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wulgar 2004-10-13 12:44:03 UTC
java.lang.NullPointerException
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.testResourceChange(MetadataElement.java:824)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaDocImpl.getPosition(JavaDocImpl.java:61)
        at
org.netbeans.modules.javacore.JMManager.getElementPosition(JMManager.java:738)
        at
org.netbeans.modules.java.JavaParserGlue$TextElement.getBounds(JavaParserGlue.java:547)
        at
org.netbeans.modules.java.JavaParserGlue$TextElement.getEndOffset(JavaParserGlue.java:617)
        at
org.netbeans.modules.java.JavaParserGlue$TextElement.getElementIndex(JavaParserGlue.java:585)
        at
org.netbeans.modules.java.JavaParserGlue.findElement(JavaParserGlue.java:478)
        at
org.netbeans.modules.debugger.projects.EditorContextImpl.getClassName(EditorContextImpl.java:422)
        at
org.netbeans.modules.debugger.jpda.EditorContextBridge.getClassName(EditorContextBridge.java:224)
        at
org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.setRequests(LineBreakpointImpl.java:77)
        at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.update(BreakpointImpl.java:86)
        at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.set(BreakpointImpl.java:67)
        at
org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.<init>(LineBreakpointImpl.java:66)
        at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.createBreakpointImpl(BreakpointsEngineListener.java:165)
        at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.createBreakpointImpls(BreakpointsEngineListener.java:144)
        at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.propertyChange(BreakpointsEngineListener.java:95)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:341)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
        at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.firePropertyChange(JPDADebuggerImpl.java:748)
        at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setState(JPDADebuggerImpl.java:735)
        at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setRunning(JPDADebuggerImpl.java:567)
        at
org.netbeans.modules.debugger.jpda.actions.StartActionProvider$1.run(StartActionProvider.java:83)
        at java.lang.Thread.run(Thread.java:595)
Comment 1 Milan Kubec 2004-10-13 13:00:02 UTC
Reassigning for evaluation.
Comment 2 Martin Matula 2004-10-13 16:31:23 UTC
What build are you using? Can you provide steps to reproduce?
Comment 3 wulgar 2004-10-13 20:26:52 UTC
I use build 20041012 but at home I'm not able to reproduce it. I
notice only that green tab which showing current execution line is
missing after fix.

Now I've got totally unusable IDE - screen will be attached with no
Exception and deadlock - I will attch log too.
Comment 4 wulgar 2004-10-13 20:32:21 UTC
Created attachment 18280 [details]
dead IDE
Comment 5 wulgar 2004-10-13 20:33:41 UTC
Created attachment 18281 [details]
thread dump
Comment 6 wulgar 2004-10-13 20:36:15 UTC
Created attachment 18282 [details]
messages.log - there is another exception - i'll serarch issuezilla if i must fill another issue
Comment 7 wulgar 2004-10-13 20:38:01 UTC
Tomorrow I'll try to reproduce it at work
Comment 8 Pavel Flaska 2004-10-20 12:49:52 UTC
It was fixed recently (NPE). Reopen if it occurs again.

User: pflaska 
Date: 04/10/18 05:33:46

Modified:    src/org/netbeans/modules/java JavaParserGlue.java
Log:
#50457: Obtaining of position improved to allow get PositionBounds
beginning with javadoc of feature.
  
Comment 9 Jiri Prox 2005-07-12 13:23:40 UTC
Verified in 4.2 (200507110943)
Comment 10 Quality Engineering 2007-09-20 12:33:37 UTC
Reorganization of java component