You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (Jira)" <ji...@apache.org> on 2020/02/05 15:21:00 UTC

[jira] [Created] (NETBEANS-3795) NPE on importing non-resolvable class

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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists