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.
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)
Created attachment 112846 [details] stacktrace
Not reproduced but it's true that the DrawEngine.initInfo() can no longer work with the current view hierarchy.
Created attachment 123016 [details] stacktrace just trying to print
Cannot reproduce.
I see the same stack trace, if I try to print an open xml-editor document. Netbeans Platform 8.1, Linux-64bit, JDK1.7