coolioxlr / watchOS-2-heartrate

watchOS 2.0 healthkit, heartrate streaming, start workout session
337 stars 49 forks source link

App Throws an Exception #2

Closed cyrilzakka closed 9 years ago

cyrilzakka commented 9 years ago

App throws an exception at the following line let value = sample!.quantity.doubleValueForUnit(self.heartRateUnit) but I haven't been able to figure out why

coolioxlr commented 9 years ago

I will update the code soon. It's because "sample" is nil sometimes

On Sun, Jul 5, 2015 at 11:16 AM, Cyril Zakka notifications@github.com wrote:

App throws an exception at the following line let value = sample!.quantity.doubleValueForUnit(self.heartRateUnit) but I haven't been able to figure out why

— Reply to this email directly or view it on GitHub https://github.com/coolioxlr/watchOS-2-heartrate/issues/2.

coolioxlr commented 9 years ago

Problem fixed