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 220133 - NullPointerException at org.netbeans.modules.maven.groovy.extender.MavenGroovyExtender.isActive
Summary: NullPointerException at org.netbeans.modules.maven.groovy.extender.MavenGroov...
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 20:50 UTC by Lukas Jungmann
Modified: 2012-10-17 02:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 193573


Attachments
stacktrace (5.02 KB, text/plain)
2012-10-15 20:50 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2012-10-15 20:50:49 UTC
Build: NetBeans IDE Dev (Build 20121013-91e95c5a56fd)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
jungi: trying to do rename on a java class in a maven project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.groovy.extender.MavenGroovyExtender.isActive(MavenGroovyExtender.java:98)
   at org.netbeans.modules.groovy.refactoring.utils.GroovyProjectUtil.isInGroovyProject(GroovyProjectUtil.java:203)
   at org.netbeans.modules.groovy.refactoring.GroovyRefactoringFactory.createInstance(GroovyRefactoringFactory.java:91)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.getPlugins(AbstractRefactoring.java:145)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.addProgressListener(AbstractRefactoring.java:299)
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog(ParametersPanel.java:588)
Comment 1 Lukas Jungmann 2012-10-15 20:50:52 UTC
Created attachment 125988 [details]
stacktrace
Comment 2 Lukas Jungmann 2012-10-15 23:14:06 UTC
delete on a java class does not work as well...
Comment 3 Martin Janicek 2012-10-16 05:34:12 UTC
Lukasi, could you send me a reproducible test case? I've created new J2SE Maven project with one groovy file and one java file and after using "Rename refactoring" on the java class, no NPE shown.
Comment 4 Martin Janicek 2012-10-16 06:33:38 UTC
Should be fixed in: web-main #beab1a9889c8
Comment 5 Quality Engineering 2012-10-17 02:02:14 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/beab1a9889c8
User: Martin Janicek <mjanicek@netbeans.org>
Log: #220133 - NullPointerException at org.netbeans.modules.maven.groovy.extender.MavenGroovyExtender.isActive