From 2129f0625b854f4e15ae8fa2aebddc8b5b69db52 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 29 Jan 2015 23:14:38 -0800 Subject: [PATCH] Fix crash with malformed with statements --- src/actypes.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actypes.d b/src/actypes.d index 26633b6..fb1f159 100644 --- a/src/actypes.d +++ b/src/actypes.d @@ -256,8 +256,8 @@ struct Scope { foreach (item; sc.symbols[]) { - if (item.kind == CompletionKind.importSymbol - || item.kind == CompletionKind.withSymbol) + if (item.type !is null && (item.kind == CompletionKind.importSymbol + || item.kind == CompletionKind.withSymbol)) { foreach (i; item.type.parts[]) symbols.insert(i);