pierrotsmnrd / grabKit

Drop-in iOS component to easily import photos from Facebook, FlickR, Instagram, Picasa, and more
Other
396 stars 89 forks source link

Crash when assetsURLString is nil (deviceGrabber) #52

Open ultragtx opened 11 years ago

ultragtx commented 11 years ago

When someone share you a photo stream, and you have not finish downloading some of the photos, in GRKDeviceGrabber.m photoIdFromAsset: line: NSString * assetsURLString = [[[asset defaultRepresentation] url] absoluteString];

assetsURLString can be nil, so the string returned will be nil. When add a GRKPhoto with nil photoId, you will throw a exception in NSMutableArray+setObjectAtPosition.m setObject:atIndex:fillWithObject: line: if ( objectToAdd == nil ) @throw NSInvalidArgumentException;