diff --git a/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs index 21d3ef677..4671bfac6 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs @@ -290,7 +290,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms // switch contains case null: if (currentCaseBlock != defaultOrNullBlock) { - values.Add((null, defaultOrNullBlock)); + values.Add((null, new Branch(defaultOrNullBlock))); } var sections = new List(values.SelectWithIndex((index, b) => new SwitchSection { Labels = new LongSet(index), Body = b.Item2 }));