Bug 1167244 - Handle nullptr return from maybeGetProperty(). r=bhackett

This commit is contained in:
Sean Stangl 2015-06-10 19:14:27 -07:00
parent 33c5f3e3dd
commit 7841b7b822

View File

@ -522,7 +522,7 @@ UnboxedLayout::makeNativeGroup(JSContext* cx, ObjectGroup* group)
return false;
HeapTypeSet* nativeProperty = nativeGroup->maybeGetProperty(id);
if (nativeProperty->canSetDefinite(i))
if (nativeProperty && nativeProperty->canSetDefinite(i))
nativeProperty->setDefinite(i);
}
}