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.
Build: NetBeans IDE Dev (Build 201108060600) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows XP User Comments: jskrivanek: To reproduce: - create PHP application project from template - modify index.php to contain the following (leading spaces are importamt): <?php class ?> - reformat code (Alt+Shift+F) and exception is thrown Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.lib2.highlighting.CompoundAttributes.getAttribute(CompoundAttributes.java:118) at org.netbeans.modules.editor.lib2.view.ViewUtils.getFont(ViewUtils.java:162) at org.netbeans.modules.editor.lib2.view.DocumentView.createTextLayout(DocumentView.java:1662) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.fixSpansAndRepaint(ParagraphViewChildren.java:307) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.ensureIndexMeasured(ParagraphViewChildren.java:237) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.modelToViewChecked(ParagraphViewChildren.java:469)
Created attachment 109842 [details] stacktrace
See bug 199959.
Increasing priority because it blocks PHP validation tests.
http://hg.netbeans.org/jet-main/rev/0c2bdac71a9f
*** Bug 201206 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/0c2bdac71a9f User: Miloslav Metelka <mmetelka@netbeans.org> Log: #200744 - NullPointerException at org.netbeans.modules.editor.lib2.highlighting.CompoundAttributes.getAttribute().
Verified, I tried to reproduce it following the steps from description and from #201206 and it works fine Product Version: NetBeans IDE Dev (Build jet-main-4611-on-20110914) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)