Skip to content

Commit

Permalink
#1307 Fix NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCanning authored and forki committed Dec 14, 2015
1 parent 79a2bbf commit 270c067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/PackageMetaData.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 270c067

Please sign in to comment.