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 201109141017) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-384, Java(TM) SE Runtime Environment, 1.6.0_26-b03-384-10M3425 OS: Mac OS X User Comments: medeag: File->Print to HTML selected options: 1) Show Line Numbers 2) Open generated HTML in browser Rokko: I've tried to print java source code using" File/Printo to HTML" menu item. 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:1364) at org.netbeans.modules.editor.ExportHtmlAction.export(ExportHtmlAction.java:261)
Created attachment 110814 [details] stacktrace
It's because BaseDocument.Accessor.BaseDocument_getMarksStorage is no longer supported since http://netbeans.org/bugzilla/show_bug.cgi?id=196508
Created attachment 111092 [details] stacktrace NPE when printing to html
print to html functionality is unusable
Already working on it for some time - will commit the fix tomorow.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=180929
Created attachment 111592 [details] stacktrace
Created attachment 111853 [details] stacktrace Printing as html and selected open in browser
http://hg.netbeans.org/jet-main/rev/97ba14fc9485
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/97ba14fc9485 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #202230 - [71cat] NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawEngine.initInfo