Browse Source

Fix #2692: NRE in DeconstructionTransform.IsCompatibleImplicitConversion

pull/2697/head
Siegfried Pammer 3 years ago
parent
commit
39992161b6
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/DeconstructionTransform.cs

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

@ -480,7 +480,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
{ {
return conv == null || conv.Kind == ConversionKind.Nop; return conv == null || conv.Kind == ConversionKind.Nop;
} }
if (c.IsNumericConversion) if (c.IsNumericConversion && conv != null)
{ {
switch (conv.Kind) switch (conv.Kind)
{ {

Loading…
Cancel
Save