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

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

     [ https://issues.apache.org/jira/browse/NETBEANS-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated NETBEANS-3795:
-------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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