Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 37c76ceefec391e25d0b80cbfd2d708059cbf241..a3a328c1193981b234c24cbb259c63b59ea65a6c 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -447,6 +447,7 @@ void PrettyPrinter::Print(const char* format, ...) { |
void PrettyPrinter::PrintStatements(ZoneList<Statement*>* statements) { |
+ if (statements == NULL) return; |
for (int i = 0; i < statements->length(); i++) { |
if (i != 0) Print(" "); |
Visit(statements->at(i)); |