sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 366 forks source link

added test case for comparing nil value against non-nil value #175

Closed z3bi closed 5 years ago

z3bi commented 5 years ago

This is causing the subscript to go through the non-optional DefaultsKey path which then throws a fatal error.

sunshinejr commented 5 years ago

@z3bi thanks so much for the PR! Investigating as we speak.

sunshinejr commented 5 years ago

Indeed that's a bug, I've got a fix on it already. Thanks again for reporting this one @z3bi!