This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191285 - NullPointerException at org.netbeans.modules.php.editor.elements.VariableElementImpl.fromFrameworks
Summary: NullPointerException at org.netbeans.modules.php.editor.elements.VariableElem...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 21:00 UTC by k4emic
Modified: 2011-02-28 15:49 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172249


Attachments
stacktrace (3.06 KB, text/plain)
2010-10-23 21:00 UTC, k4emic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description k4emic 2010-10-23 21:00:05 UTC
Build: NetBeans IDE 7.0 M2 (Build 201010151251)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Windows 7

User Comments:
bedomon: I was typing code

dukeofgaming: Writing a for loop inside php short tags

k4emic: Editing view for "show" action

dukeofgaming: Typing a helper function that was supposed to autocomplete

GUEST: higlighting text

GUEST: Trying to work. bleargh!

GUEST: <?php if ($action == "approve"): ?>
        <?php echo "some stuff" ?>
      <?php el
      <?php endif; ?>

in the above block, typing after <?php el

the error was triggered.

<?php endif; ?> shows red underline (syntax error) because I haven't finished typing elseif yet...




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.elements.VariableElementImpl.fromFrameworks(VariableElementImpl.java:150)
   at org.netbeans.modules.php.editor.elements.IndexQueryImpl.initExtendedQuery(IndexQueryImpl.java:162)
   at org.netbeans.modules.php.editor.elements.IndexQueryImpl.init(IndexQueryImpl.java:129)
   at org.netbeans.modules.php.editor.elements.IndexQueryImpl.<init>(IndexQueryImpl.java:124)
   at org.netbeans.modules.php.editor.elements.IndexQueryImpl.create(IndexQueryImpl.java:183)
   at org.netbeans.modules.php.editor.model.impl.IndexScopeImpl.<init>(IndexScopeImpl.java:100)
Comment 1 k4emic 2010-10-23 21:00:18 UTC
Created attachment 102590 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-02-18 13:55:44 UTC
129 duplicates - at least P2
Comment 3 Petr Pisl 2011-02-28 15:49:15 UTC
This is already should be fixed by change 
http://hg.netbeans.org/main/rev/644af957a884


When I went through the exception reporter, there is no record from build that contains the change.