mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
fixing #4703 reveals another bug
This commit is contained in:
@@ -255,6 +255,7 @@ public class JavaBuild {
|
||||
writer.close();
|
||||
}
|
||||
} catch (RuntimeException re) {
|
||||
re.printStackTrace();
|
||||
throw new SketchException("Could not write " + java.getAbsolutePath());
|
||||
}
|
||||
} catch (antlr.RecognitionException re) {
|
||||
|
||||
@@ -1230,7 +1230,8 @@ public class PdePreprocessor {
|
||||
if ((mode == Mode.STATIC) || (mode == Mode.ACTIVE)) {
|
||||
// doesn't remove the original size() method,
|
||||
// but calling size() again in setup() is harmless.
|
||||
if (!hasMethod("settings") && sizeInfo.hasSettings()) {
|
||||
if (!hasMethod("settings") &&
|
||||
sizeInfo != null && sizeInfo.hasSettings()) {
|
||||
out.println(indent + "public void settings() { " + sizeInfo.getSettings() + " }");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user