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 JDK9 Branch (Build 201609260404) VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14 OS: Windows 10 User Comments: jdlee: Moving a class from one package to another Stacktrace: java.lang.NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:165) at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:154) at org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitMemberSelect(MoveTransformer.java:151) at org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitMemberSelect(MoveTransformer.java:72) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2104) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:71)
Created attachment 162227 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=226435
Created attachment 165603 [details] stacktrace trying to move classes from a package in a module to another module (and package in that 2nd module).
Created attachment 165687 [details] stacktrace while renaming a package