NullPointerException with some sketches that have no size() command #3585

Closed
benfry opened this Issue Aug 12, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@benfry
Member

benfry commented Aug 12, 2015

In a sketch without a size() command, 3.0 beta 3 will sometimes fail with:

java.lang.NullPointerException
    at processing.mode.java.preproc.SurfaceInfo.addStatements(SurfaceInfo.java:130)
    at processing.mode.java.preproc.PdePreprocessor.parseSketchSize(PdePreprocessor.java:432)
    at processing.mode.java.preproc.PdePreprocessor.initSketchSize(PdePreprocessor.java:206)
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:254)
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:193)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:152)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:131)
    at processing.mode.java.JavaMode.handleLaunch(JavaMode.java:154)
    at processing.mode.java.JavaMode.handleRun(JavaMode.java:131)
    at processing.mode.java.JavaEditor$35.run(JavaEditor.java:1152)
    at java.lang.Thread.run(Thread.java:745)

@benfry benfry closed this in fb038a9 Aug 12, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 12, 2015

Member

Fixed for 3.0 beta 4.

Member

benfry commented Aug 12, 2015

Fixed for 3.0 beta 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment