Fixed exception that Darin encountered in Mail.
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2004 17:40:12 +0000 (17:40 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2004 17:40:12 +0000 (17:40 +0000)
        Reviewed by darin.

        * Plugins.subproj/WebPluginController.m:
        (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7896 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/Plugins.subproj/WebPluginController.m

index 851c134dbb58314523f05eabe1585a07f648d00d..61aea3e4c9561e973b23976c9e488c4adf476e3a 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-26  Chris Blumenberg  <cblu@apple.com>
+
+       Fixed exception that Darin encountered in Mail.
+
+        Reviewed by darin.
+
+        * Plugins.subproj/WebPluginController.m:
+        (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
+
 2004-10-25  Chris Blumenberg  <cblu@apple.com>
 
        Darin made an internal notification have the Web prefix.
index 64ab38b1027b8e5c9ea6fd018e35185e28c2967e..aa57f4f1464fe5924efa93eecb7d74d4317aec1f 100644 (file)
@@ -56,7 +56,9 @@ static NSMutableSet *pluginViews = nil;
         view = [viewFactory plugInViewWithArguments:arguments];
     } else if ([viewFactory respondsToSelector:@selector(pluginViewWithArguments:)]) {
         view = [viewFactory pluginViewWithArguments:arguments];
-    } else {
+    }
+    
+    if (view == nil) {
         return nil;
     }