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 220980 - NullPointerException at org.netbeans.modules.php.editor.codegen.CGSGenerator.invoke
Summary: NullPointerException at org.netbeans.modules.php.editor.codegen.CGSGenerator....
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-28 20:06 UTC by Selpi
Modified: 2012-10-30 02:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194202


Attachments
stacktrace (3.07 KB, text/plain)
2012-10-28 20:06 UTC, Selpi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Selpi 2012-10-28 20:06:43 UTC
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)
Comment 1 Selpi 2012-10-28 20:06:45 UTC
Created attachment 126683 [details]
stacktrace
Comment 2 Ondrej Brejla 2012-10-29 09:11:34 UTC
Fixed in web-main #9c6b05f3c063
Comment 3 Quality Engineering 2012-10-30 02:33:05 UTC
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