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.
1. Create a new PHP file. 2. At the end of file, type <a href=" Result: when you type ", no " symbols appears, and NPE comes.
Created attachment 72930 [details] Exception stacktrace
I am not able to reproduce it. The stack trace doesn't tell me much, it was probably a random failure in the lexer. Please reopen if you can provide steps to reproduce it.
I'm able to reproduce it steadily with the steps described above. Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Do you want me to check it against trunk builds?
Reproducible in FCS.
it works for me in trunk as well as in RC2. Can you please attach the full IDE log? Thanks
Created attachment 73377 [details] IDE log
Can't reproduce on Linux. Possibly a platform-dependent issue.
*** Issue 152487 has been marked as a duplicate of this issue. ***
See also 152147. So it seems that it happens when you type " or ' at the last line of file.
*** Issue 154082 has been marked as a duplicate of this issue. ***
*** Issue 136828 has been marked as a duplicate of this issue. ***
*** Issue 152291 has been marked as a duplicate of this issue. ***
*** Issue 156462 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows XP, 5.1, x86 User Comments: Cant input quotation marks in Editor when creating link (<a href=) In PHP code in this same documents, marks works fine. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.editor.indent.PHPBracketCompleter.completeQuote(PHPBracketCompleter.java:1629) at org.netbeans.modules.php.editor.indent.PHPBracketCompleter.beforeCharInserted(PHPBracketCompleter.java:902) at org.netbeans.modules.gsf.GsfEditorKitFactory$GsfEditorKit$GsfDefaultKeyTypedAction.insertString(GsfEditorKitFactory.java:265) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$1.run(BaseKit.java:1113) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:354) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1084)
Created attachment 77539 [details] stacktrace
145 duplicates ... P2 Tomas, all reports are for NB 6.5 & 2 reports for NB 6.5.1 so far, so FIXED ?
was not reproduced nor on WIN nor on Ubuntu Product Version: NetBeans IDE Dev (Build 200903260733) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 Tomas, it's fixed or should we expect some fix here?
This NPE is thrown is a pretty obscure part of code. This issue is random and I cannot reproduce it and therefore cannot determine the real source of the problem. I was reluctant to commit a hotfix earlie but I am doing it now as it seems to be a safe solution: http://hg.netbeans.org/web-main/rev/13c3d3dedced
I can't reproduce on Product Version: NetBeans IDE Dev (Build 200903291205) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02 Is there somebody who can? Please submit a report if yes.
Integrated into 'main-golden', will be available in build *200904030200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/13c3d3dedced User: Tomasz Slota <tslota@netbeans.org> Log: #151886: PHP autocompletion causes NPE when completing HTML attribute value quotes
verified ... again sorry for the mess I did with reopening
*** Issue 166010 has been marked as a duplicate of this issue. ***
*** Issue 159720 has been marked as a duplicate of this issue. ***