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.
Build: NetBeans IDE Dev (Build 200810210201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32 OS: Windows Vista, 6.0, x86 User Comments: sunbiz: Find Usages on a blank line in a groovy file threw this exception Stacktrace: java.lang.AssertionError: line number was negative: -1 at org.netbeans.modules.groovy.editor.api.AstPath.findPathTo(AstPath.java:134) at org.netbeans.modules.groovy.editor.api.AstPath.<init>(AstPath.java:102) at org.netbeans.modules.groovy.refactoring.GroovyRefactoringElement.<init>(GroovyRefactoringElement.java:67) at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:205) at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:171) at org.netbeans.modules.groovy.editor.api.parser.SourceUtils.runUserActionTask(SourceUtils.java:105)
Created attachment 72385 [details] stacktrace
Build: NetBeans IDE Dev (Build 200810240201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32 OS: Windows Vista, 6.0, x86 User Comments: Find Usages on an empty line in groovy file Stacktrace: java.lang.AssertionError: line number was negative: -1 at org.netbeans.modules.groovy.editor.api.AstPath.findPathTo(AstPath.java:134) at org.netbeans.modules.groovy.editor.api.AstPath.<init>(AstPath.java:102) at org.netbeans.modules.groovy.refactoring.GroovyRefactoringElement.<init>(GroovyRefactoringElement.java:67) at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:205) at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:171) at org.netbeans.modules.groovy.editor.api.parser.SourceUtils.runUserActionTask(SourceUtils.java:105)
Created attachment 72741 [details] stacktrace
This is not reproducible on trunk. Please reopen if it occurs again.