protect against null assembly
authorJb Evain <jbevain@gmail.com>
Mon, 27 Aug 2007 18:22:37 +0000 (18:22 -0000)
committerJb Evain <jbevain@gmail.com>
Mon, 27 Aug 2007 18:22:37 +0000 (18:22 -0000)
svn path=/trunk/mcs/; revision=84904

mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs

index 69bed1d285329990cd49a07fda62a1cd66c086b2..13d114b6d512928d5e24280e81807680e8f450c1 100644 (file)
@@ -332,7 +332,9 @@ namespace Mono.CompilerServices.SymbolWriter
                {
                        // Check that the MDB file matches the assembly, if we have been
                        // passed an assembly.
-
+                       if (assembly == null)
+                               return;
+                       
                        Module[] modules = assembly.GetModules ();
                        Guid assembly_guid = MonoDebuggerSupport.GetGuid (modules [0]);