an-rahulpandey / ios-audio-picker

Get songs from the iOS music library.
Apache License 2.0
19 stars 8 forks source link

uncaught exception #1

Closed alivanov closed 9 years ago

alivanov commented 9 years ago

Hi Rahul, thanks for the plugin!

Getting this exceptions after selecting a song: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: object cannot be nil (key: image)'

I'm not an expert in Objective-C, but I guess it is because of this line of code (/src/ios/iOSAudioPicker.m): [songInfo setObject:[imgData base64EncodedString] forKey:@"image"];

Could you please avoid nil values along the songInfo object?

Thanks in advance, Alex

an-rahulpandey commented 9 years ago

Hello alivano, Thanks for pointing out the issue. I will take a look into this as soon as possible.