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 190309 - NullPointerException at org.netbeans.modules.php.editor.elements.FieldElementImpl.fromFrameworks
Summary: NullPointerException at org.netbeans.modules.php.editor.elements.FieldElement...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 190484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-11 20:34 UTC by Filip Zamboj
Modified: 2011-03-21 10:23 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172130


Attachments
stacktrace (3.06 KB, text/plain)
2010-09-11 20:34 UTC, Filip Zamboj
Details
hopefully right fix - please test (1.60 KB, patch)
2010-10-08 12:22 UTC, rmatous
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2010-09-11 20:34:48 UTC
This issue was reported manually by fzamboj.
It already has 8 duplicates 


Build: NetBeans IDE Dev (Build 100910-9af588ea8af0)
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:
GUEST: attempting to use autocompletion on a view file (Zend Framework Powered)

GUEST: Editing Zend Framework Code

fzamboj: auto cc in zend template

fzamboj: well, it looks it is thrown only when code completion is to be invoked (manually or automatically)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.elements.FieldElementImpl.fromFrameworks(FieldElementImpl.java:155)
   at org.netbeans.modules.php.editor.elements.IndexQueryImpl.initExtendedQuery(IndexQueryImpl.java:168)
   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-11 20:34:52 UTC
Created attachment 101991 [details]
stacktrace
Comment 2 Filip Zamboj 2010-09-11 21:16:05 UTC
it's almost impossible to work in template because this is being thrown regularly ...
Comment 3 Filip Zamboj 2010-09-15 12:33:25 UTC
batch reassigning
Comment 4 rmatous 2010-10-08 12:22:13 UTC
Created attachment 102313 [details]
hopefully right fix - please test
Comment 5 Tomas Mysik 2010-10-08 12:32:08 UTC
(In reply to comment #4)
> hopefully right fix - please test

Works for me, please apply it if it's correct. Thanks.
Comment 6 Petr Pisl 2010-10-11 07:57:27 UTC
Tanks to Radek for the fix. It works for me as well. Applied.
Comment 7 Quality Engineering 2010-10-12 02:31:37 UTC
Integrated into 'main-golden', will be available in build *201010120000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ea625a28528a
User: Petr Pisl <ppisl@netbeans.org>
Log: #190309 - NullPointerException at org.netbeans.modules.php.editor.elements.FieldElementImpl.fromFrameworks
Comment 8 OndrejBrejla 2011-03-21 10:23:19 UTC
*** Bug 190484 has been marked as a duplicate of this bug. ***