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.
This bug was originally marked as duplicate of bug 214439, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.2 (Build 201207171143) VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-b147 OS: Linux User Comments: jakemonO: trying to use the netbeans hint to autogenerate a method looksw to be bug 214439 tmysik: invoke hint for generating missing method GUEST: When click "create method in Class" in hint dialog. web82: Trying to create a method with a hint (alt+enter). Calling a method that does not exixts from another method generates a hint, but choosing "create method..." throws this 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$IntroduceMethodFix.implement(IntroduceHint.java:463) 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 122459 [details] stacktrace
*** This bug has been marked as a duplicate of bug 214439 ***
Created attachment 122476 [details] stacktrace Hello.... This issue ocurred after i write a class method: class A { public function functionName() { $this->_otherMethod(); //the tip is: Create a method on A class but if i click to create the method a excepction is raised } }
Created attachment 122518 [details] stacktrace I accepted the hint of creating a non existing method in a PHP class and nothing happened except a small error message at the bottom of the scree.