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 204691 - [71cat] NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawEngine.initInfo
Summary: [71cat] NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawE...
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 15:39 UTC by cezariusz
Modified: 2016-10-12 19:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182601


Attachments
stacktrace (3.24 KB, text/plain)
2011-11-04 15:39 UTC, cezariusz
Details
stacktrace (3.29 KB, text/plain)
2012-08-12 20:15 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2011-11-04 15:39:55 UTC
This bug was originally marked as duplicate of bug 202230, 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 201110310600)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP

User Comments:
cezariusz: Trying to print an XSD file.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.lib.drawing.DrawEngine.initInfo(DrawEngine.java:227)
   at org.netbeans.modules.editor.lib.drawing.DrawEngine.drawInternal(DrawEngine.java:1194)
   at org.netbeans.modules.editor.lib.drawing.DrawEngine.draw(DrawEngine.java:1103)
   at org.netbeans.modules.editor.lib.drawing.DrawEngine.draw(DrawEngine.java:1070)
   at org.netbeans.editor.BaseDocument.print(BaseDocument.java:1319)
   at org.netbeans.modules.print.editor.Editor.actionPerformed(Editor.java:98)
Comment 1 cezariusz 2011-11-04 15:39:58 UTC
Created attachment 112846 [details]
stacktrace
Comment 2 Miloslav Metelka 2012-06-07 08:31:28 UTC
Not reproduced but it's true that the DrawEngine.initInfo() can no longer work with the current view hierarchy.
Comment 3 Exceptions Reporter 2012-08-12 20:15:47 UTC
Created attachment 123016 [details]
stacktrace

just trying to print
Comment 4 Miloslav Metelka 2013-08-21 13:14:03 UTC
Cannot reproduce.
Comment 5 oliverrettig 2016-10-12 19:27:42 UTC
I see the same stack trace, if I try to print an open xml-editor document. 
Netbeans Platform 8.1, Linux-64bit, JDK1.7