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 109275 - NPE in JPDAWatchEvaluating.getType
Summary: NPE in JPDAWatchEvaluating.getType
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 109397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-10 18:00 UTC by pzajac
Modified: 2010-04-29 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Expception (768 bytes, text/plain)
2007-07-10 18:01 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-07-10 18:00:53 UTC
[0700710]
jdk 1.5.0_11, linux
The exception was thrown during debug trace action.

java.lang.NullPointerException
        at org.netbeans.modules.debugger.jpda.models.WatchesModel$JPDAWatchEvaluating.getType(WatchesModel.java:334)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter(VariablesTreeModelFilter.java:447)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.access$100(VariablesTreeModelFilter.java:52)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter$3.run(VariablesTreeModelFilter.java:253)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.run(VariablesTreeModelFilter.java:126)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 pzajac 2007-07-10 18:01:46 UTC
Created attachment 44896 [details]
Expception
Comment 2 Martin Entlicher 2007-07-10 21:09:37 UTC
If I had a different highlighting for fields sooner, I would not make this bug.
Almost a typo...
Comment 3 Martin Entlicher 2007-07-10 21:13:21 UTC
Fixed:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/WatchesModel.java,v  <-- 
WatchesModel.java
new revision: 1.38; previous revision: 1.37
Comment 4 ehucka 2007-07-11 15:17:52 UTC
I can see it in latest build on mac osx with jdk 1.5.0_07 after each creation of watch:


java.lang.NullPointerException
        at org.netbeans.modules.debugger.jpda.models.WatchesModel$JPDAWatchEvaluating.getType(WatchesModel.java:336)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter(VariablesTreeModelFilter.java:447)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.access$100(VariablesTreeModelFilter.java:52)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter$3.run(VariablesTreeModelFilter.java:253)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.run(VariablesTreeModelFilter.java:126)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 5 Martin Entlicher 2007-07-11 16:09:08 UTC
Further correction is applied:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/WatchesModel.java,v  <-- 
WatchesModel.java
new revision: 1.39; previous revision: 1.38
Comment 6 Martin Entlicher 2007-07-11 16:41:34 UTC
*** Issue 109397 has been marked as a duplicate of this issue. ***
Comment 7 Quality Engineering 2010-04-29 09:33:57 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.