Skip to content

Commit cbfc31c

Browse files
committed
fixing processing#4703 reveals another bug
1 parent 3dab651 commit cbfc31c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

java/src/processing/mode/java/JavaBuild.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public String preprocess(File srcFolder,
255255
writer.close();
256256
}
257257
} catch (RuntimeException re) {
258+
re.printStackTrace();
258259
throw new SketchException("Could not write " + java.getAbsolutePath());
259260
}
260261
} catch (antlr.RecognitionException re) {

java/src/processing/mode/java/preproc/PdePreprocessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,8 @@ protected void writeFooter(PrintWriter out, String className) {
12301230
if ((mode == Mode.STATIC) || (mode == Mode.ACTIVE)) {
12311231
// doesn't remove the original size() method,
12321232
// but calling size() again in setup() is harmless.
1233-
if (!hasMethod("settings") && sizeInfo.hasSettings()) {
1233+
if (!hasMethod("settings") &&
1234+
sizeInfo != null && sizeInfo.hasSettings()) {
12341235
out.println(indent + "public void settings() { " + sizeInfo.getSettings() + " }");
12351236
}
12361237

0 commit comments

Comments
 (0)