mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1058168 - Tolerate a null PerThreadData runtime in runtimeIfOnOwnerThread(), r=luke.
This commit is contained in:
parent
7c10863e87
commit
6ace183a93
@ -1598,7 +1598,7 @@ PerThreadData::runtimeFromMainThread()
|
||||
inline JSRuntime *
|
||||
PerThreadData::runtimeIfOnOwnerThread()
|
||||
{
|
||||
return CurrentThreadCanAccessRuntime(runtime_) ? runtime_ : nullptr;
|
||||
return (runtime_ && CurrentThreadCanAccessRuntime(runtime_)) ? runtime_ : nullptr;
|
||||
}
|
||||
|
||||
inline bool
|
||||
|
Loading…
Reference in New Issue
Block a user