mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixed debugging code to not attempt to call through an empty AST
This commit is contained in:
@@ -175,7 +175,9 @@ public class PdePreprocessor {
|
||||
stream.println("<?xml version=\"1.0\"?>");
|
||||
stream.println("<document>");
|
||||
OutputStreamWriter writer = new OutputStreamWriter(stream);
|
||||
((CommonAST)parserAST).xmlSerialize(writer);
|
||||
if (parserAST != null) {
|
||||
((CommonAST)parserAST).xmlSerialize(writer);
|
||||
}
|
||||
writer.flush();
|
||||
stream.println("</document>");
|
||||
writer.close();
|
||||
|
||||
Reference in New Issue
Block a user