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 152151 - Exception in watch tab
Summary: Exception in watch tab
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:
Depends on:
Blocks:
 
Reported: 2008-11-02 11:34 UTC by mini_root
Modified: 2010-04-29 09:45 UTC (History)
1 user (show)

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 mini_root 2008-11-02 11:34:56 UTC
When i try watch value of variable in groovy class ("Watch" tab) - i get exception 
(http://statistics.netbeans.org/analytics/detail.do?id=126889)

Also in mixed project (java/groovy):
1. In source of groovy class in drop down list not displaying methods of current class
2. In context menu in "Projects" tab on groovy class not present item "Compile File"
Comment 1 Petr Hejl 2008-11-20 09:19:05 UTC
This will need more work on debugger at least we can fix NPE for 7.0.
Comment 2 Petr Hejl 2009-02-10 14:52:50 UTC
Looks like EditorContextImpl is "faking" Java Source - this leads to NPE later (Scala, Groovy debugging).
Comment 3 Martin Entlicher 2009-02-10 15:35:23 UTC
I'm not sure it's only a debugger problem, but it looks like the exception is thrown when JavaSource.forFileObject(file)
returns null.
Thus I will not call JavaSourceUtil.createControllerHandle(fo, handle); when I can not get the JavaSource from the "fo"
FileObject. This should hopefully fix this.
Comment 4 Martin Entlicher 2009-03-30 14:24:05 UTC
Caoyuan Deng already fixed this at http://hg.netbeans.org/main/rev/d970f53567d8.

I've reverted that fix and added just a check for null JavaSource in changeset:   124304:c6166d553a7d
http://hg.netbeans.org/main/rev/c6166d553a7d
Comment 5 Quality Engineering 2009-03-31 07:35:12 UTC
Integrated into 'main-golden', will be available in build *200903310200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c6166d553a7d
User: mentlicher@netbeans.org
Log: #152151 - Changeset d970f53567d8 reverted, check for null JavaSource added.
Comment 6 Quality Engineering 2010-04-29 09:45:13 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.