FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 811 : Vista 64 / textFont work-around / null pointer bug
Last modified: 2008-06-08 10:59
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
808
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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
***