empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 588 forks source link

Fix Name setter for Pdf.Contents.Objects.CName #86

Open jeanbern opened 5 years ago

jeanbern commented 5 years ago

The setter should be validating the input, not the existing value. As is, the CName(string name) constructor always throws an ArgumentNullException.