diff --git a/ICSharpCode.ILSpyX/LoadedPackage.cs b/ICSharpCode.ILSpyX/LoadedPackage.cs index 8d0d99f90..1f8e9be36 100644 --- a/ICSharpCode.ILSpyX/LoadedPackage.cs +++ b/ICSharpCode.ILSpyX/LoadedPackage.cs @@ -123,6 +123,10 @@ namespace ICSharpCode.ILSpyX view = null; // don't dispose the view, we're still using it in the bundle entries return result; } + catch (InvalidDataException) + { + return null; + } finally { view?.Dispose();