Bug 1023 : P2D - null pointer exception drawing line with alpha stroke
Last modified: 2008-11-19 09:51




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
davbol
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-19 08:41
Beta 0157, WinXPsp3, included JRE.

The following code:

size(200,200,P2D);
background(0);
stroke(255,128);
line(10,10,190,190);

generates:

Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PLine.drawLine_plain_alpha(PLine.java:645)
at processing.core.PLine.draw(PLine.java:402)
at processing.core.PGraphics2D.draw_lines(PGraphics2D.java:1580)
at processing.core.PGraphics2D.endShape(PGraphics2D.java:277)
at processing.core.PGraphics.endShape(PGraphics.java:1133)
at processing.core.PGraphics.line(PGraphics.java:1388)
at processing.core.PApplet.line(PApplet.java:6868)
at P2DTestStrokeAlpha.setup(P2DTestStrokeAlpha.java:19)
at processing.core.PApplet.handleDraw(PApplet.java:1376)
at processing.core.PApplet.run(PApplet.java:1304)
at java.lang.Thread.run(Unknown Source)
Additional Comment #1 From fry 2008-11-19 09:51
nuts, thought i found all of those. fixed for 0158, thanks.