Laszlo Kishalmi created NETBEANS-3795:
-----------------------------------------
Summary: NPE on importing non-resolvable class
Key: NETBEANS-3795
URL: https://issues.apache.org/jira/browse/NETBEANS-3795
Project: NetBeans
Issue Type: Bug
Components: java - Source
Reporter: Laszlo Kishalmi
When the IDE tries to add an import statement for a class which is not
resolvable from the current classpath it throws an NPE.
{noformat}
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){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists