diff options
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/graphics/android/PatternAndroid.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/PatternAndroid.cpp b/WebCore/platform/graphics/android/PatternAndroid.cpp index ff2b522..a787113 100644 --- a/WebCore/platform/graphics/android/PatternAndroid.cpp +++ b/WebCore/platform/graphics/android/PatternAndroid.cpp @@ -43,6 +43,8 @@ static SkShader::TileMode toTileMode(bool doRepeat) { SkShader* Pattern::createPlatformPattern(const TransformationMatrix& ) const { SkBitmapRef* ref = tileImage()->nativeImageForCurrentFrame(); + if (!ref) + return 0; SkShader* s = SkShader::CreateBitmapShader(ref->bitmap(), toTileMode(m_repeatX), toTileMode(m_repeatY)); |