Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 trying to print throws NPE

open
nobody
None
5
2014-08-14
2004-10-28
toby cabot
No

Hi,

I'm playing around with Ycad and it looks pretty cool.
Thanks! When I run "ant tests6" and try to print I
get an NPE:

[java] ++++++++++YxxfJDrwViewHandler:print|BEG
[java]
++++++++++YxxfJDrwViewHandler:print|pagedim=[java.awt.Dimension[width=612,height=792]]
[java]
++++++++++YxxfJDrwViewHandler:print|pageres=[72]
[java]
++++++++++YxxfJDrwViewHandler:print|vdrawing.bounds=[java.awt.Rectangle[x=0,y=25,width=638,height=429]]
[java]
++++++++++YxxfJDrwViewHandler:print|jpc=[sun.print.ProxyPrintGraphics[font=java.awt.Font[family=Dialog,name=Dialog,style=plain,size=12],color=java.awt.Color[r=0,g=0,b=0]]]
[java] java.lang.NullPointerException
[java] at
com.ysystems.ycad.lib.yxxf.YxxfGfxContext.calcdsp_viewport(YxxfGfxContext.java:654)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0View.setupGC_predraw2(YxxfPrtTilemode0View.java:426)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0DrawT.do_redraw(YxxfPrtTilemode0DrawT.java:289)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0DrawT.run(YxxfPrtTilemode0DrawT.java:242)

Regards,
Toby

Discussion