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 214439 - NullPointerException at org.netbeans.modules.php.editor.PHPCompletionItem$MethodDeclarationItem.getNameAndFunctionBodyForTemplate
Summary: NullPointerException at org.netbeans.modules.php.editor.PHPCompletionItem$Met...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 215104 215586 215760 215933 215979 215983 216058 216667 216872 216893 216999 217236 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-19 11:38 UTC by Vladimir Riha
Modified: 2012-09-07 08:03 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189723


Attachments
stacktrace (749 bytes, text/plain)
2012-06-19 11:38 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-06-19 11:38:50 UTC
Build: NetBeans IDE 7.2 RC1 (Build 201206182200)
VM: Java HotSpot(TM) Client VM, 23.2-b05, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b14
OS: Linux

User Comments:
vriha: Used following code:
==
class Foo {
    public static function bar(){
        echo "FooBar";
    }
}
Foo::{'bar'}();
==
Place cursor on the line with Clas::{expr}, on the bulb icon select "Create Method..." => exception




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.PHPCompletionItem$MethodDeclarationItem.getNameAndFunctionBodyForTemplate(PHPCompletionItem.java:853)
   at org.netbeans.modules.php.editor.PHPCompletionItem$MethodDeclarationItem.getCustomInsertTemplate(PHPCompletionItem.java:847)
   at org.netbeans.modules.php.editor.verification.IntroduceHint$IntroduceStaticMethodFix.implement(IntroduceHint.java:503)
   at org.netbeans.modules.csl.hints.infrastructure.FixWrapper.implement(FixWrapper.java:66)
   at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:788)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
Comment 1 Vladimir Riha 2012-06-19 11:38:54 UTC
Created attachment 121044 [details]
stacktrace
Comment 2 Ondrej Brejla 2012-06-19 12:53:29 UTC
Fixed in web-main #efe0be67ec91
Comment 3 Quality Engineering 2012-06-20 04:38:37 UTC
Integrated into 'main-golden', will be available in build *201206200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/efe0be67ec91
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #214439 - NullPointerException at org.netbeans.modules.php.editor.PHPCompletionItem$MethodDeclarationItem.getNameAndFunctionBodyForTemplate
Comment 4 Vladimir Riha 2012-06-20 10:53:53 UTC
thanks, verified

Product Version: NetBeans IDE Dev (Build 20120620-75f1fa394a84)
Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b05
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Ondrej Brejla 2012-07-03 06:31:26 UTC
*** Bug 215104 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Riha 2012-07-16 13:29:08 UTC
Ondro, does the "OB_72_PATCH" means patch candidate? :) I agree that this should go to patch.
Comment 7 Ondrej Brejla 2012-07-16 13:30:12 UTC
Yes, you are right...it's my WB tag to don't forget on them ;)
Comment 8 Vladimir Riha 2012-07-16 13:34:05 UTC
*** Bug 215586 has been marked as a duplicate of this bug. ***
Comment 9 Ondrej Brejla 2012-07-20 08:31:58 UTC
*** Bug 215760 has been marked as a duplicate of this bug. ***
Comment 10 Ondrej Brejla 2012-07-25 09:50:51 UTC
*** Bug 215933 has been marked as a duplicate of this bug. ***
Comment 11 Ondrej Brejla 2012-07-26 07:23:51 UTC
*** Bug 215979 has been marked as a duplicate of this bug. ***
Comment 12 Ondrej Brejla 2012-07-26 08:24:40 UTC
*** Bug 215983 has been marked as a duplicate of this bug. ***
Comment 13 Ondrej Brejla 2012-07-27 12:39:03 UTC
*** Bug 216058 has been marked as a duplicate of this bug. ***
Comment 14 Ondrej Brejla 2012-08-09 08:37:19 UTC
Transplanted into releases, please verify, thanks.
Comment 15 Vladimir Riha 2012-08-10 14:39:09 UTC
*** Bug 216667 has been marked as a duplicate of this bug. ***
Comment 16 Ondrej Brejla 2012-08-15 07:32:15 UTC
*** Bug 216893 has been marked as a duplicate of this bug. ***
Comment 17 Ondrej Brejla 2012-08-17 08:20:14 UTC
*** Bug 216999 has been marked as a duplicate of this bug. ***
Comment 18 Ondrej Brejla 2012-08-23 07:20:16 UTC
*** Bug 217236 has been marked as a duplicate of this bug. ***
Comment 19 Ondrej Brejla 2012-08-24 08:07:43 UTC
*** Bug 216872 has been marked as a duplicate of this bug. ***
Comment 20 Quality Engineering 2012-09-01 11:12:25 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/54eb93bf61a6
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #214439 - NullPointerException at org.netbeans.modules.php.editor.PHPCompletionItem$MethodDeclarationItem.getNameAndFunctionBodyForTemplate
(transplanted from efe0be67ec914b1f425ad4298042629e7c7383bc)
Comment 21 Vladimir Riha 2012-09-07 08:03:58 UTC
patch1 verified


Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)