We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionGeneral Discussion,  Status › 0154 java.lang.NullPointerException won't run
Page Index Toggle Pages: 1
0154 java.lang.NullPointerException won't run (Read 420 times)
0154 java.lang.NullPointerException won't run
Oct 31st, 2008, 9:22pm
 
i just downloaded 0154 and none of my sketches will run. i was previously using 0148.

i can't think of what's happening, nothing changed just a different version of processing.

so i tried this:

Code:

void setup() {
size(500,500);

}

void draw() {
background(0);

fill(255,0,255);
ellipse(0,0, 300,300);
}


and i got this error:

java.lang.NullPointerException

at java.util.StringTokenizer.<init>(StringTokenizer.java:182)

at java.util.StringTokenizer.<init>(StringTokenizer.java:204)

at processing.core.PApplet.splitTokens(PApplet.java:5161)

at processing.app.preproc.PdePreprocessor.writePrefix(PdePreprocessor.java:241)

at processing.app.Sketch.preprocess(Sketch.java:1271)

at processing.app.Sketch.build(Sketch.java:1478)

at processing.app.Sketch.compile(Sketch.java:1178)

at processing.app.Editor.handleRun(Editor.java:1645)

at processing.app.Editor$15.actionPerformed(Editor.java:551)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

at javax.swing.AbstractButton.doClick(AbstractButton.java:334)

at javax.swing.AbstractButton.doClick(AbstractButton.java:282)

at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.j
ava:1020)

at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)

at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)

at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)

at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)

at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)

at
(there was more, but it was too long to post)


my specs:
OSX 10.4.11
Dual 2 GHz PowerPC G5
4 GB DDR SDRAM

any help would be appreciated.

thanks.
Ken
Re: 0154 java.lang.NullPointerException won't run
Reply #1 - Oct 31st, 2008, 9:27pm
 
i just redownloaded 0154, and no problems. i wonder what i had done.

just as well.

sorry for the trouble.
Ken
Page Index Toggle Pages: 1