mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1167244 - Handle nullptr return from maybeGetProperty(). r=bhackett
This commit is contained in:
parent
33c5f3e3dd
commit
7841b7b822
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user