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.
Summary: | java.lang.NullPointerException at start up | ||
---|---|---|---|
Product: | javaee | Reporter: | javydreamercsw <javydreamercsw> |
Component: | Debugger | Assignee: | Libor Kotouc <lkotouc> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | messages.log |
Description
javydreamercsw
2005-07-28 13:11:36 UTC
Created attachment 23343 [details]
messages.log
The exception origins in debugger, can you please evaluate the issue? There are many other exceptions, but it really looks like the java.lang.NullPointerException at org.netbeans.modules.debugger.projects.EditorContextImpl.getLineNumber(EditorContextImpl.java:208) breaks the startup sequence... The problem seems to be that org.netbeans.spi.debugger.jpda.EditorContext.annotate() can return null. This is not documented!!! Therefore we can not blame JspBreakpointAnnotationListener that they likely call EditorContext.getLineNumber(...) with a null argument... This is what I got from the code. Any steps to reproduce? It looks like the breakpoint annotation could not be found, therefore you have e.g. removed the JSP file in which you had the breakpoint...? Is that possible? It's reproducible when a breakpoint is added to the end of the file, NetBeans are exited and the file is subsequently shorted. Then when NetBeans are started again, the attached exception is thrown. However the IDE comes up... The null return value is added into the Javadoc: /cvs/debuggerjpda/api/src/org/netbeans/spi/debugger/jpda/EditorContext.java,v <-- EditorContext.java new revision: 1.7; previous revision: 1.6 /cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v <-- EditorContextImpl.java new revision: 1.17; previous revision: 1.16 Therefore moving to web/jspdebugger to fix the NPE. For the submitter: please do not paste in the log file inline, add it as an attachment. Thanks. Fixed. Testing null value returned by EditorContext.annotate(). Checking in Context.java; /cvs/web/jspdebug/src/org/netbeans/modules/web/debug/Context.java,v <-- Context.java new revision: 1.9; previous revision: 1.8 done Checking in JspBreakpointAnnotationListener.java; /cvs/web/jspdebug/src/org/netbeans/modules/web/debug/JspBreakpointAnnotationListener.java,v <-- JspBreakpointAnnotationListener.java new revision: 1.4; previous revision: 1.3 done Verified. |