From 50e8e7d16a8ea3a36405f8f28608de5884d714a6 Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Sun, 23 Jan 2011 22:23:01 +0200 Subject: [PATCH] add check on ReadMetadata --- .../Src/Services/DecompilerService/DecompilerService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs b/src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs index 8ccafc8077..38f1fc4dde 100644 --- a/src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs +++ b/src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs @@ -51,6 +51,11 @@ namespace ICSharpCode.SharpDevelop public static void ReadMetadata(IClass c, out string filePath) { + if (c == null) { + filePath = null; + return; + } + CodeCompileUnit compileUnit = new CodeCompileUnit(); // add namespace