Skip to content

Commit

Permalink
Merge pull request #1308 from JonCanning/master
Browse files Browse the repository at this point in the history
#1307 Fix NullReferenceException
  • Loading branch information
forki committed Dec 14, 2015
2 parents 79a2bbf + 0dfa430 commit fce52a5
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 fce52a5

Please sign in to comment.