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.
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)
Created attachment 121044 [details] stacktrace
Fixed in web-main #efe0be67ec91
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
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)
*** Bug 215104 has been marked as a duplicate of this bug. ***
Ondro, does the "OB_72_PATCH" means patch candidate? :) I agree that this should go to patch.
Yes, you are right...it's my WB tag to don't forget on them ;)
*** Bug 215586 has been marked as a duplicate of this bug. ***
*** Bug 215760 has been marked as a duplicate of this bug. ***
*** Bug 215933 has been marked as a duplicate of this bug. ***
*** Bug 215979 has been marked as a duplicate of this bug. ***
*** Bug 215983 has been marked as a duplicate of this bug. ***
*** Bug 216058 has been marked as a duplicate of this bug. ***
Transplanted into releases, please verify, thanks.
*** Bug 216667 has been marked as a duplicate of this bug. ***
*** Bug 216893 has been marked as a duplicate of this bug. ***
*** Bug 216999 has been marked as a duplicate of this bug. ***
*** Bug 217236 has been marked as a duplicate of this bug. ***
*** Bug 216872 has been marked as a duplicate of this bug. ***
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)
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)