webengine/osswebengine/WebCore/platform/graphics/symbian/ImageSymbian.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 5 10e98eab6f85
--- a/webengine/osswebengine/WebCore/platform/graphics/symbian/ImageSymbian.cpp	Mon Mar 30 12:54:55 2009 +0300
+++ b/webengine/osswebengine/WebCore/platform/graphics/symbian/ImageSymbian.cpp	Fri May 08 08:25:06 2009 +0300
@@ -325,6 +325,9 @@
 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dst, const FloatRect& src, CompositeOperator op)
 {
     WebCoreGraphicsContext* context = ctxt->platformContext();
+	if (!context) {
+          return;
+	}
 
     CMaskedBitmap* bm = frameAtIndex(m_currentFrame);
     if (!bm) // If it's too early we won't have an BitmapImage yet.