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 238448

Summary: NullPointerException at org.netbeans.modules.editor.lib.drawing.DrawEngine.initInfo
Product: editor Reporter: Jesse Glick <jglick>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: jokingaray
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205324
Attachments: stacktrace
stacktrace

Description Jesse Glick 2013-11-15 22:31:00 UTC
This bug was originally marked as duplicate of bug 204691, 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 20131115-7233d1d805df)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
jglick: Had a r/o Java source open; tried to open a file using File > Open.




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:1307)
   at org.netbeans.modules.print.editor.Editor.actionPerformed(Editor.java:98)
Comment 1 Jesse Glick 2013-11-15 22:31:01 UTC
Created attachment 142249 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-11-18 14:24:36 UTC
Printing.
Comment 3 ngx472 2013-11-30 17:40:16 UTC
Also happens in 7.4
Comment 4 ngx472 2013-11-30 17:52:13 UTC
Also happens in my SQL Editor built w Platform 7.4 when hitting File/Print
Comment 5 Exceptions Reporter 2015-02-11 22:06:31 UTC
Created attachment 151965 [details]
stacktrace

Attempted to print code.