From 4e28896f530c9d9b2af278abb35c6b9549941e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis?= Date: Sat, 22 Apr 2017 23:20:03 +0300 Subject: [PATCH] Fix ASTNull Parser!ASTNull(null, null, false) --- src/ddmd/lexer.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddmd/lexer.d b/src/ddmd/lexer.d index 1b85b9b4f010..57dd69070fbc 100644 --- a/src/ddmd/lexer.d +++ b/src/ddmd/lexer.d @@ -186,7 +186,7 @@ class Lexer //initKeywords(); /* If first line starts with '#!', ignore the line */ - if (p[0] == '#' && p[1] == '!') + if (p && p[0] == '#' && p[1] == '!') { p += 2; while (1)