Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
When the IDE tries to add an import statement for a class which is not resolvable from the current classpath it throws an NPE.
java.lang.NullPointerException at org.netbeans.modules.java.source.pretty.ImportAnalysis2.resolveImport(ImportAnalysis2.java:351) at org.netbeans.modules.java.source.transform.ImmutableTreeTranslator.visitMemberSelect(ImmutableTreeTranslator.java:475) at org.netbeans.modules.java.source.transform.ImmutableTreeTranslator.visitMemberSelect(ImmutableTreeTranslator.java:74) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2231)
Attachments
Issue Links
- is related to
-
NETBEANS-2980 NPE when opening file
- Closed
- links to