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 176859, 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 100525-b96981f3270e) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux User Comments: GUEST: First of all: I just installed netbeans 6.8b and did no other changes to the installation yet. I was adding a new php code template. within that template I just wanted to write: echo "<pre>"; but while typing, I think, code completion popped up and I might have chosed the suggested entry (I didn't expected code completion to pop up, so I was just typing in). Right after that the error occurred. hope it helps! GUEST: i was adding a new template code. the problem occured when i type (') symbol troodon: just working on a css file. GUEST: create php code template GUEST: I was trying to create code template, when I got this exception. CodeCompletion: html tag <pre> Thrown on: when I typed closing > sjoerdmaessen: Was typing a code template echo '<pre> when i typed the second ' it crashed GUEST: while creating a new Code Template for PHP crash right after typing "echo '<pre" GUEST: I was editind snippets maghiel: Wanted to create a parameter in a new template Imhozavr: Inserted new template to Code templates for php. Options -> Editor -> Code templates. Template text was: "\n<br>", with ". IDE crashed when I closed the tag (>). troodon: opening a project and while doing nothing the indexer crashes mchl: Creating new code template GUEST: The problem occured when i was editing a code template on writing the <pre> balise ( echo '<pre>'; ) enjoy :o GUEST: Adding new php code template: echo "<pre>"; var_dump(${$cursor}); echo "</pre>"; GUEST: i as adding shortcut for <?php ?> GUEST: I kust added new template text (echo "<pr) GUEST: adding <h1> as expanded text in a php code completion GUEST: Trying to create a new template for php. I copied and pasted text to create a "controller" Template. ppisl: I have an empty file, write <? php with spaces and then delete the php. GUEST: Trying to edit a new code template. ChristianD: I was edition Code Templates (Option -> Tools -> Editor -> Code Template) I was editing the "eco" abbreviation when I changed echo "${cursor}" to "{$cursor}". The error appeared after I deleted the $ character, moved cursor before the braket. When I type the the $ caracter the error appeared Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.editor.PHPCodeCompletion.complete(PHPCodeCompletion.java:268) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:610) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:598) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.access$400(GsfCompletionProvider.java:246) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery$1.run(GsfCompletionProvider.java:336) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
Created attachment 99546 [details] stacktrace
Unpleasant NPE in editor, many duplicates, should be fixed for 6.9, harmless fix http://hg.netbeans.org/web-main/rev/e40a68cc8214
v/c
The fix looks correct.
fixed into release69: http://hg.netbeans.org/release69/rev/2be40ada19e6
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e40a68cc8214 User: Radek Matous <rmatous@netbeans.org> Log: #186817 - NullPointerException at org.netbeans.modules.php.editor.PHPCodeCompletion.complete
Product Version: NetBeans IDE 6.9 (Build 100609-a94d6a4a87fe) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 verified in release69 clone