From 3c60c15a81e91b6d24c0fb85f00b3583afaec637 Mon Sep 17 00:00:00 2001 From: cloudygeek Date: Fri, 18 Jun 2021 09:27:27 +0100 Subject: [PATCH] Update Options.swift checking if object is null before checking if nil. causes to crash if null. --- ios/Classes/Options.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/Options.swift b/ios/Classes/Options.swift index 286a2f83..46ecf21c 100755 --- a/ios/Classes/Options.swift +++ b/ios/Classes/Options.swift @@ -16,7 +16,7 @@ public class Options: NSObject { func parse(options: [String: Any?]) -> Options { for (key, value) in options { - if value != nil, !(value is NSNull), self.responds(to: Selector(key)) { + if !(value is NSNull), value != nil, self.responds(to: Selector(key)) { self.setValue(value, forKey: key) } }