Bug 811 : Vista 64 / textFont work-around / null pointer bug
Last modified: 2008-06-08 10:59




Status:
RESOLVED
Resolution:
DUPLICATE of bug 808
Priority:
P2
Severity:
normal

 

Reporter:
doc
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-06-08 08:54
void setup() {
size(1024,768,JAVA2D);
}

boolean start=true;
void draw() {
if ( start ) { init(); start=false; }
.
.
(do regular frame)
}

PFont font=null;
void init() {
font = textFont("ThisFont.vlw");
textFont(font,12);
noStroke();
}

.
.

The above code generates:
java.lang.NullPointerException
at processing.core.PApplet.textFont(PApplet.java:7701)
at Temporary_4090_2681.init(Temporary_4090_2681.java:905)

If I remove textFont and loadFont calls, it generates this error:

java.lang.NullPointerException
at processing.core.PApplet.noStroke(PApplet.java:7701)
at Temporary_4090_2681.init(Temporary_4090_2681.java:905)
Additional Comment #1 From fry 2008-06-08 10:59


*** This bug has been marked as a duplicate of 808 ***