KurtCode/PDFKitten — Issue #4: a fix for FontDescriptor.m
Author: ldenoue
Created: 2011-10-21 15:58:47+00:00
State: open

In FontDescriptor.m, - (id)initWithPDFDictionary:(CGPDFDictionaryRef)dict, CGPDFDictionaryGetName(dict, "Type", &type) sometimes returns a nil in type.

Testing as follows goes around the problem:
if (type == nil)
{
[self release]; return nil;
}

Laurent.