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 249931 - NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 15:28 UTC by aldobrucale
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214926


Attachments
stacktrace (3.18 KB, text/plain)
2015-01-21 15:28 UTC, aldobrucale
Details
stacktrace (3.18 KB, text/plain)
2015-03-17 12:39 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2015-01-21 15:28:11 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
aldobrucale: Moving a class to another project




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.cast(JavacElements.java:652)
   at com.sun.tools.javac.model.JavacElements.getPackageOf(JavacElements.java:368)
   at org.netbeans.modules.refactoring.java.plugins.MoveClassTransformer.getPackageOf(MoveClassTransformer.java:426)
   at org.netbeans.modules.refactoring.java.plugins.MoveClassTransformer.setWorkingCopy(MoveClassTransformer.java:118)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:385)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:368)
Comment 1 aldobrucale 2015-01-21 15:28:13 UTC
Created attachment 151601 [details]
stacktrace
Comment 2 aldobrucale 2015-03-17 12:39:34 UTC
Created attachment 152672 [details]
stacktrace

Tried to move a class from a unit test package to a class in  a non-test package
Comment 3 Martin Balin 2016-07-07 07:18:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss