n1mda / sonos-objc

An Objective-C API for controlling Sonos Devices
MIT License
20 stars 24 forks source link

Crash in SonosController.m #4

Open MartinMoizard opened 9 years ago

MartinMoizard commented 9 years ago

Hello,

I am facing a crash on line 401 of SonosController.m. I am not doing anything special to get this crash. I guess it comes directly from the sharedInstance that initializes the devices.

So it crashes on: NSDictionary *returnData = @{@"CurrentTransportState" : response[@"s:Envelope"][@"s:Body"][@"u:GetTransportInfoResponse"][@"CurrentTransportState"][@"text"]};

It crashes because 'response' is nil.

Martin

larsblumberg commented 8 years ago

This now fixed here: https://github.com/getsenic/sonos-objc/commit/3701e5e7a151b2e5b8f2159cf3451b85fb67cfaa