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 190152 - 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
: P1 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 20:15 UTC by Filip Zamboj
Modified: 2011-03-16 09:27 UTC (History)
27 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172075


Attachments
stacktrace (6.76 KB, text/plain)
2010-09-04 20:16 UTC, Filip Zamboj
Details
stacktrace (3.25 KB, text/plain)
2010-09-04 22:34 UTC, Filip Zamboj
Details
stacktrace (2.51 KB, text/plain)
2010-09-04 22:37 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2010-09-04 20:15:58 UTC
Build: NetBeans IDE Dev (Build 100904-408b228ce05d)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux

User Comments:
fzamboj: clicked into editor in symfony template

GUEST: coding

GUEST: coding

GUEST: coding php in html template




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 Filip Zamboj 2010-09-04 20:16:01 UTC
Created attachment 101869 [details]
stacktrace
Comment 2 Filip Zamboj 2010-09-04 22:34:01 UTC
Created attachment 101872 [details]
stacktrace

clicked on variable in symfony project
Comment 3 Filip Zamboj 2010-09-04 22:37:02 UTC
Created attachment 101873 [details]
stacktrace

ctrl+tab in editor
Comment 4 Filip Zamboj 2010-09-15 12:33:20 UTC
batch reassigning
Comment 5 Petr Pisl 2010-10-25 15:13:06 UTC
Do you have an reproducible case? According the code there shouldn't be NPE
Comment 6 Marian Mirilovic 2011-01-14 15:18:28 UTC
233 dups -> P1
Comment 7 Petr Pisl 2011-01-17 13:20:03 UTC
I have fixed this 01/11/2011. Should be ok from builds.  Closing as fixed. There shouldn't be any more new records in exception reporter from 01/15/2011 dev build.
Comment 8 Petr Pisl 2011-03-16 09:27:51 UTC
Why it was reopened? The issue was fixed by this change http://hg.netbeans.org/web-main/rev/644af957a884 from 1/11/2011. The fix is not in the first Beta and there are not reports from builds, that were build after the fix.