diff --git a/js/src/vm/TypedArrayObject.cpp b/js/src/vm/TypedArrayObject.cpp index c9d2ecca2156..503f92706a5b 100644 --- a/js/src/vm/TypedArrayObject.cpp +++ b/js/src/vm/TypedArrayObject.cpp @@ -2819,7 +2819,7 @@ bool JS::ArrayBufferOrView::isDetached() const { } JS::TypedArray_base JS::TypedArray_base::fromObject(JSObject* unwrapped) { - if (unwrapped->is()) { + if (unwrapped && unwrapped->is()) { return TypedArray_base(unwrapped); } return TypedArray_base(nullptr);