Permalink
Browse files

Crash fix by checking null pointer

bug:6579681
Regression from https://android-git.corp.google.com/g/#/c/197452/

Change-Id: If185faec6bb2d014c304afbb8ff752ebfc6e4b51
  • Loading branch information...
Teng-Hui Zhu
Teng-Hui Zhu committed Jun 12, 2012
1 parent 7fc1c09 commit a762e7bf8891adc575b8b75cf79b710952ad090c
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/WebCore/platform/graphics/android/rendering/ImageTexture.cpp
@@ -144,7 +144,7 @@ bool ImageTexture::equalsCRC(unsigned crc)
// Return 0 if the image does not meet the repeatable criteria.
unsigned int ImageTexture::getImageTextureId()
{
- return m_tileGrid->getImageTextureId();
+ return m_tileGrid ? m_tileGrid->getImageTextureId() : 0;
}
int ImageTexture::nbTextures()

0 comments on commit a762e7b

Please sign in to comment.