Browse Source

modified comparison to use nil rather than null

dtmalloy1 6 years ago
parent
commit
e2553d76f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ios/Classes/FlutterWebviewPlugin.m

+ 1 - 1
ios/Classes/FlutterWebviewPlugin.m

@@ -101,7 +101,7 @@ static NSString *const CHANNEL_NAME = @"flutter_webview_plugin";
     }
 
     CGRect rc;
-    if (rect != (id)[NSNull null]) {
+    if (rect != nil) {
         rc = [self parseRect:rect];
     } else {
         rc = self.viewController.view.bounds;