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 202230 - [71cat] NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawEngine.initInfo
Summary: [71cat] NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawE...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks: 205953
  Show dependency tree
 
Reported: 2011-09-16 13:53 UTC by medeag
Modified: 2011-12-05 16:12 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180929


Attachments
stacktrace (3.75 KB, text/plain)
2011-09-16 13:53 UTC, medeag
Details
stacktrace (4.43 KB, text/plain)
2011-09-23 11:43 UTC, Jiri Prox
Details
stacktrace (4.11 KB, text/plain)
2011-10-06 11:35 UTC, tomzi
Details
stacktrace (4.45 KB, text/plain)
2011-10-11 13:29 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medeag 2011-09-16 13:53:30 UTC
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)
Comment 1 medeag 2011-09-16 13:53:35 UTC
Created attachment 110814 [details]
stacktrace
Comment 2 Milutin Kristofic 2011-09-16 15:19:33 UTC
It's because BaseDocument.Accessor.BaseDocument_getMarksStorage is no longer supported since http://netbeans.org/bugzilla/show_bug.cgi?id=196508
Comment 3 Jiri Prox 2011-09-23 11:43:19 UTC
Created attachment 111092 [details]
stacktrace

NPE when printing to html
Comment 4 Jiri Prox 2011-09-23 11:44:22 UTC
print to html functionality is unusable
Comment 5 Miloslav Metelka 2011-10-04 15:45:16 UTC
Already working on it for some time - will commit the fix tomorow.
Comment 6 Exceptions Reporter 2011-10-05 19:47:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=180929
Comment 7 tomzi 2011-10-06 11:35:47 UTC
Created attachment 111592 [details]
stacktrace
Comment 8 Exceptions Reporter 2011-10-11 13:29:28 UTC
Created attachment 111853 [details]
stacktrace

Printing as html and selected open in browser
Comment 9 Miloslav Metelka 2011-10-11 13:52:09 UTC
http://hg.netbeans.org/jet-main/rev/97ba14fc9485
Comment 10 Quality Engineering 2011-10-12 14:28:34 UTC
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