Browse Source

Fix #880: NullReferenceException in NullableLiftingTransform.

pull/881/merge
Daniel Grunwald 8 years ago
parent
commit
ba009e790d
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs

2
ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs

@ -547,7 +547,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -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);
}

Loading…
Cancel
Save