Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5253

NPE in PSR-4 hint

    XMLWordPrintableJSON

    Details

      Description

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

      To reproduce type following code:

      $now = new \DateTime();
      

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

      Exception is thrown:

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Kacer Tomáš Procházka
                Reporter:
                Kacer Tomáš Procházka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h