From 1aa9d6f085021df7d00af78fdf638cc9275c4b61 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Mon, 27 Aug 2007 18:22:37 +0000 Subject: [PATCH] protect against null assembly svn path=/trunk/mcs/; revision=84904 --- .../Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs b/mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs index 69bed1d2853..13d114b6d51 100644 --- a/mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs +++ b/mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs @@ -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]); -- 2.25.1