Description
following code patch will ensure that no NPE is thrown. the question is if the check for NULL is done at the correct place (functionally yes) respectively is it correct to apply the default configuration setting for that case?
@@ -85,7 +85,7 @@
public Map getNormalAppearance()
{
COSBase ap = dictionary.getDictionaryObject( COSName.getPDFName( "N" ) );
- if( ap instanceof COSStream )
+ if( ap instanceof COSStream || ap == null)
{
COSStream aux = (COSStream) ap;
ap = new COSDictionary();