From ba009e790dc03b83456c18a1f715bd54294b5e28 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 28 Sep 2017 21:52:17 +0200 Subject: [PATCH] Fix #880: NullReferenceException in NullableLiftingTransform. --- .../IL/Transforms/NullableLiftingTransform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs index 9e703791c..bf8508303 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs @@ -547,7 +547,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms } else { return (null, null); } - if (!newBits.All(0, nullableVars.Count)) { + if (newBits == null || !newBits.All(0, nullableVars.Count)) { // all nullable vars must be involved when calling a method (side effect) return (null, null); }