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 185702 - NullPointerException at org.netbeans.modules.php.editor.api.QualifiedNameKind.resolveKind
Summary: NullPointerException at org.netbeans.modules.php.editor.api.QualifiedNameKind...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 14:09 UTC by St.Ev
Modified: 2010-06-09 20:27 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168350


Attachments
stacktrace (2.09 KB, text/plain)
2010-05-07 14:09 UTC, St.Ev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description St.Ev 2010-05-07 14:09:46 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004212000)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux

User Comments:
GUEST: I clicked a method name to travel to the method definition.

GUEST: I clicked in py php project on a method with CTRL+mouseclick to navigate to the declaration

St.Ev: [ctrl+b]  parent::methodName($var,$var3,$var3);

GUEST: clicke a method in navigator to go to relative code

GUEST: changing getters and setters




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.api.QualifiedNameKind.resolveKind(QualifiedNameKind.java:75)
   at org.netbeans.modules.php.editor.api.QualifiedName.createUnqualifiedName(QualifiedName.java:270)
   at org.netbeans.modules.php.editor.model.nodes.ASTNodeInfo.toQualifiedName(ASTNodeInfo.java:127)
   at org.netbeans.modules.php.editor.model.nodes.ASTNodeInfo.getQualifiedName(ASTNodeInfo.java:99)
   at org.netbeans.modules.php.editor.model.impl.OccurenceBuilder.buildMethodInvocations(OccurenceBuilder.java:839)
   at org.netbeans.modules.php.editor.model.impl.OccurenceBuilder.buildMethods(OccurenceBuilder.java:757)
Comment 1 St.Ev 2010-05-07 14:09:49 UTC
Created attachment 98631 [details]
stacktrace
Comment 2 rmatous 2010-05-26 14:33:32 UTC
reproducible if php code contains e.g code like this:
$this->{'_find' . ucfirst($type)}('before', $query);
Comment 4 rmatous 2010-05-26 14:42:33 UTC
Unpleasant NPE in editor, should be fixed for 6.9

I've already added 69_HR_FIX_CANDIDATE, but Filipe please confirm
Comment 5 Filip Zamboj 2010-05-27 09:41:47 UTC
(In reply to comment #4)
> Unpleasant NPE in editor, should be fixed for 6.9
> 
> I've already added 69_HR_FIX_CANDIDATE, but Filipe please confirm

I agree.
Comment 6 rmatous 2010-05-27 09:48:10 UTC
ok, I will push it into release69 today
Comment 8 Quality Engineering 2010-05-28 08:06:09 UTC
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/19baa3c1a9eb
User: Radek Matous <rmatous@netbeans.org>
Log: #185702 - NullPointerException at org.netbeans.modules.php.editor.api.QualifiedNameKind.resolveKind
Comment 9 Filip Zamboj 2010-06-01 12:47:34 UTC
v/c
Comment 10 Filip Zamboj 2010-06-09 20:27:10 UTC
Product Version: NetBeans IDE 6.9 (Build 100609-a94d6a4a87fe)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

verified in release69 clone