From aeebbf85ae1cc636d517f565bc21522c7a9e1dff Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 13 Sep 2018 16:42:21 +0200 Subject: [PATCH] Fix #698 --- src/dscanner/astprinter.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dscanner/astprinter.d b/src/dscanner/astprinter.d index 4aab493..1b2cbbf 100644 --- a/src/dscanner/astprinter.d +++ b/src/dscanner/astprinter.d @@ -598,7 +598,8 @@ class XMLPrinter : ASTVisitor override void visit(const LabeledStatement labeledStatement) { output.writeln(""); - visit(labeledStatement.declarationOrStatement); + if (labeledStatement.declarationOrStatement !is null) + visit(labeledStatement.declarationOrStatement); output.writeln(""); }