Tomáš Procházka created NETBEANS-5253:
-----------------------------------------

             Summary: NPE in PSR-4 hint
                 Key: NETBEANS-5253
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5253
             Project: NetBeans
          Issue Type: Bug
          Components: php - Editor
    Affects Versions: 12.3
            Reporter: Tomáš Procházka
            Assignee: Tomáš Procházka


NullPointerException is thrown when user navigates from source to PHP stubs.

To reproduce type following code:
{code:php}
$now = new \DateTime();
{code}

Then Ctrl+click / Ctrl+B / Navigate > Go To Declaration.

Exception is thrown:

{noformat}
java.lang.NullPointerException
        at 
org.netbeans.modules.php.editor.verification.PSR4Hint$TypeDeclarationHint$TypeVisitor.processTypeDeclaration(PSR4Hint.java:183)
        at 
org.netbeans.modules.php.editor.verification.PSR4Hint$TypeDeclarationHint$TypeVisitor.visit(PSR4Hint.java:158)
{noformat}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to