appscript icon indicating copy to clipboard operation
appscript copied to clipboard

objc: Some methods did not check for null NSError** param.

Open abarnert opened this issue 13 years ago • 0 comments

  • Many of the methods in AEMApplication, AEMEvent, etc. follow the usual ObjC idiom of taking an optional NSError** error, but some of the methods in AEMApplication are missing checks for null, and therefore crash on *error=nil.

For example:

[AEMApplication findApplicationForCreator:kLSUnknownCreator
                                 bundleID:nil
                                     name:@"NonexistentApp"
                                    error:nil];

abarnert avatar Oct 05 '12 19:10 abarnert