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 142606 - NullPointerException at org.netbeans.modules.groovy.editor.VariableScopeVisitor.collect
Summary: NullPointerException at org.netbeans.modules.groovy.editor.VariableScopeVisit...
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: martin_adamek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 17:13 UTC by cazacugmihai
Modified: 2008-11-15 22:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 85338


Attachments
stacktrace (1.38 KB, text/plain)
2008-08-01 17:13 UTC, cazacugmihai
Details
stacktrace (1.38 KB, text/plain)
2008-09-14 22:45 UTC, goeh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cazacugmihai 2008-08-01 17:13:34 UTC
Build: NetBeans IDE Dev (Build 200808010201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.groovy.editor.VariableScopeVisitor.collect(VariableScopeVisitor.java:101)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.highlight(GroovyOccurrencesFinder.java:167)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.run(GroovyOccurrencesFinder.java:131)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.run(GroovyOccurrencesFinder.java:69)
        at org.netbeans.modules.gsfret.editor.semantic.MarkOccurrencesHighlighter.processImpl(MarkOccurrencesHighlighter.java:173)
        at org.netbeans.modules.gsfret.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:113)
Comment 1 cazacugmihai 2008-08-01 17:13:46 UTC
Created attachment 66336 [details]
stacktrace
Comment 2 martin_adamek 2008-08-14 17:32:40 UTC
Can you please provide source code and cursor position where this happened?
Comment 3 goeh 2008-09-14 22:45:48 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
Commented, prefixed a line with //

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.groovy.editor.VariableScopeVisitor.collect(VariableScopeVisitor.java:128)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.highlight(GroovyOccurrencesFinder.java:177)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.run(GroovyOccurrencesFinder.java:141)
        at org.netbeans.modules.groovy.editor.parser.GroovyOccurrencesFinder.run(GroovyOccurrencesFinder.java:71)
        at org.netbeans.modules.gsfret.editor.semantic.MarkOccurrencesHighlighter.processImpl(MarkOccurrencesHighlighter.java:173)
        at org.netbeans.modules.gsfret.editor.semantic.MarkOccurrencesHighlighter.run(MarkOccurrencesHighlighter.java:113)
Comment 4 goeh 2008-09-14 22:45:52 UTC
Created attachment 69830 [details]
stacktrace
Comment 5 martin_adamek 2008-09-15 13:46:23 UTC
Fixed.
http://hg.netbeans.org/main/rev/8e7eec27d8ab
Comment 6 Quality Engineering 2008-09-15 17:38:08 UTC
Integrated into 'main-golden', will be available in build *200809151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8e7eec27d8ab
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #142606: NullPointerException at org.netbeans.modules.groovy.editor.VariableScopeVisitor.collect