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.
Try to print a source of containing guarded blocks. The following NullPointerException is notified: java.lang.NullPointerException at org.netbeans.editor.DrawEngine.drawFragment(DrawEngine.java:471) at org.netbeans.editor.DrawEngine.drawCurrentTokenFragment(DrawEngine.java:603) at org.netbeans.editor.DrawEngine.drawCurrentToken(DrawEngine.java:697) at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:892) at org.netbeans.editor.BaseDocument.print(BaseDocument.java:651) at org.netbeans.modules.editor.NbEditorDocument.createPrintIterators(NbEditorDocume nt.java:115) at org.openide.text.DefaultPrintable.getIterators(DefaultPrintable.java:529) at org.openide.text.DefaultPrintable.<init>(DefaultPrintable.java:151) at org.openide.text.NbDocument.findPageable(NbDocument.java:323) at org.openide.text.CloneableEditorSupport.print(CloneableEditorSupport.java:444) at org.openide.actions.PrintAction$1.run(PrintAction.java:43)
*** Bug 7266 has been marked as a duplicate of this bug. ***
Resolved for 3.3.x or earlier, no new info since then -> closing.