fixed debugging code to not attempt to call through an empty AST

This commit is contained in:
dmose
2003-09-05 09:01:50 +00:00
parent d5118bc0b8
commit 7ec6a1d988

View File

@@ -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();