From 0dfa430a2afb1deca3c7770463692477b866e408 Mon Sep 17 00:00:00 2001 From: Jon Canning Date: Mon, 14 Dec 2015 16:19:02 +0000 Subject: [PATCH] #1307 Fix NullReferenceException --- src/Paket.Core/PackageMetaData.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paket.Core/PackageMetaData.fs b/src/Paket.Core/PackageMetaData.fs index ed374c1c29..f8c6daae66 100644 --- a/src/Paket.Core/PackageMetaData.fs +++ b/src/Paket.Core/PackageMetaData.fs @@ -92,7 +92,7 @@ let loadAssemblyAttributes (assemblyReader:ProviderImplementation.AssemblyReader [for inp in assemblyReader.ILModuleDef.ManifestOfAssembly.CustomAttrs.Elements do match ProviderImplementation.AssemblyReader.decodeILCustomAttribData assemblyReader.ILGlobals inp with | [] -> () - | args -> yield (inp.Method.EnclosingType.BasicQualifiedName, Seq.head [ for (_,arg) in args -> arg.ToString()]) ] + | args -> yield (inp.Method.EnclosingType.BasicQualifiedName, Seq.head [ for (_,arg) in args -> if isNull arg then "" else arg.ToString()]) ] let (|Valid|Invalid|) md =