Patch to fix NULL ptr dereference in 8171 on Linux

TBR=junov@google.com



git-svn-id: http://skia.googlecode.com/svn/trunk@8175 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-03-15 16:49:34 +00:00
parent 604a56ad42
commit 35e1563380

View File

@ -529,7 +529,9 @@ static void apply_optimization_to_bbh(PictureRecordOptType opt, SkPictureStateTr
SkBBoxHierarchy* boundingHierarchy) {
switch (opt) {
case kCollapseSaveLayer_OptType:
stateTree->saveCollapsed();
if (NULL != stateTree) {
stateTree->saveCollapsed();
}
break;
case kRewind_OptType:
if (NULL != boundingHierarchy) {