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 7229 - A source containing guarded blocks cannot be printed.
Summary: A source containing guarded blocks cannot be printed.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 normal (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-02 07:18 UTC by Daniel Prusa
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Prusa 2000-08-02 07:18:57 UTC
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)
Comment 1 Jan Lahoda 2000-08-07 08:39:59 UTC
*** Bug 7266 has been marked as a duplicate of this bug. ***
Comment 2 Quality Engineering 2003-06-30 18:01:20 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-06-30 18:10:06 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.