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 196843, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201210270001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05 OS: Linux User Comments: Selpi: Tried to use a code generator feature to add Constructor to a php class. Steps to reproduce: 1) Create new empty php file. 2) add smth like: class Test extends ArrayIterator {} 3) place caret inside {} and press alt+insert 4) Choose Constructor Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.editor.codegen.CGSGenerator.invoke(CGSGenerator.java:498) at org.netbeans.modules.editor.codegen.GenerateCodePanel.invokeSelected(GenerateCodePanel.java:197) at org.netbeans.modules.editor.codegen.GenerateCodePanel.listKeyReleased(GenerateCodePanel.java:143) at org.netbeans.modules.editor.codegen.GenerateCodePanel.access$300(GenerateCodePanel.java:66) at org.netbeans.modules.editor.codegen.GenerateCodePanel$4.keyReleased(GenerateCodePanel.java:123) at java.awt.AWTEventMulticaster.keyReleased(AWTEventMulticaster.java:260)
Created attachment 126683 [details] stacktrace
Fixed in web-main #9c6b05f3c063
Integrated into 'main-golden', will be available in build *201210300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9c6b05f3c063 User: Ondrej Brejla <obrejla@netbeans.org> Log: #220980 - NullPointerException at org.netbeans.modules.php.editor.codegen.CGSGenerator.invoke