Null passed to a callee that requires a non-null argument
问题 I have been using this to convert a CIImage to NSData for ages: NSData *data = [imageRep representationUsingType: NSPNGFileType properties:nil]; Now on El Capitan I have this error on the second line: Null passed to a callee that requires a non-null argument I can solve that by using an empty array on the properties, like this: NSData *data = [imageRep representationUsingType: NSPNGFileType properties: @{}]; but I am suspecting that this can cause me problems in the future. Is this the