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 124074 - NullPointerException at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.evaluateConditionIn
Summary: NullPointerException at org.netbeans.modules.debugger.jpda.breakpoints.Breakp...
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-12-15 09:11 UTC by Jiri Skrivanek
Modified: 2019-03-21 20:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 15942


Attachments
stacktrace (616 bytes, text/plain)
2007-12-15 09:11 UTC, Jiri Skrivanek
Details
Stack trace from build 20080107110118. (3.79 KB, text/plain)
2008-01-07 14:12 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-12-15 09:11:02 UTC
Build: NetBeans IDE Dev (Build 20071214181929)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
Exception is thrown and breakpoint is not reached when you debug JSP. It started to happen in build 200712140000. To reproduce:

- create web application (glassfish v2)
- toggle breakpoint in index.jsp (e.g. on Hello World!)
- start debugger. When the application is deployed, exception is thrown, page is shown in browser but debgger doesn't stop at breakpoint.
Comment 1 Jiri Skrivanek 2007-12-15 09:11:06 UTC
Created attachment 54291 [details]
stacktrace
Comment 2 Martin Entlicher 2007-12-15 13:28:21 UTC
Hmm, the condition returned null instead of true/false. Starting to look at it...
Comment 3 Martin Entlicher 2008-01-04 14:51:26 UTC
The elements were not resolved if Java source is not available. Thus I made the evaluation to work even when elements
are not resolved:

/shared/data/ccvs/repository/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.42; previous revision: 1.41

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/EditorContextBridge.java,v  <-- 
EditorContextBridge.java
new revision: 1.18; previous revision: 1.17

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/SourcePath.java,v  <--  SourcePath.java
new revision: 1.13; previous revision: 1.12

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/BreakpointImpl.java,v  <--
 BreakpointImpl.java
new revision: 1.47; previous revision: 1.46

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java,v  <-- 
EvaluatorVisitor.java
new revision: 1.12; previous revision: 1.11

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/TreeEvaluator.java,v  <-- 
TreeEvaluator.java
new revision: 1.5; previous revision: 1.4
Comment 4 Martin Entlicher 2008-01-04 15:01:18 UTC
/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java,v  <-- 
EvaluatorVisitor.java
new revision: 1.13; previous revision: 1.12
Comment 5 Jiri Skrivanek 2008-01-07 14:12:03 UTC
It seemed to work in previous builds but in build 20080107110118 it throws exceptions:

com.sun.jdi.ObjectCollectedException
java.net.MalformedURLException: no protocol: virtual folder
Comment 6 Jiri Skrivanek 2008-01-07 14:12:50 UTC
Created attachment 54754 [details]
Stack trace from build 20080107110118.
Comment 7 Martin Entlicher 2008-01-07 20:07:33 UTC
It's strange that Method.argumentTypes() throws ObjectCollectedException, all we can do it to add an empty catch I guess:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java,v  <-- 
EvaluatorVisitor.java
new revision: 1.15; previous revision: 1.14

"virtual folder" String is produced by web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java
I've submitted issue #124834 for that. It's a non-destructive exception.
Comment 8 Jiri Skrivanek 2008-01-11 09:06:20 UTC
Verified.
Comment 9 mygf 2019-03-21 20:03:11 UTC
"><img src=x onerror=alert(1)>