webengine/osswebengine/WebCore/html/HTMLMetaElement.cpp
changeset 10 a359256acfc6
parent 0 dd21522fd290
--- a/webengine/osswebengine/WebCore/html/HTMLMetaElement.cpp	Fri Jul 03 15:54:40 2009 +0100
+++ b/webengine/osswebengine/WebCore/html/HTMLMetaElement.cpp	Thu Aug 27 07:44:59 2009 +0300
@@ -70,9 +70,12 @@
     String str = name();
     if(!str.isEmpty()) {
         String v = content();
+        Frame* frame = document()->frame();
+        // frame null check added for fix of bug AJPA-7SWFS2, JS Document doesnot have frame assosicated so check has 
+        // been added to avoid unnecessary metadata notification.
         //Inform the bridge about this meta value;
-        if (inDocument()) {
-            static_cast<WebCoreFrameBridge*>(document()->frame()->bridge())->notifyMetaData(str,v);
+        if (inDocument() && frame != NULL) {
+            static_cast<WebCoreFrameBridge*>(frame->bridge())->notifyMetaData(str,v);
         }
     }
 #endif