| Index: third_party/WebKit/Source/modules/crypto/Crypto.cpp
|
| diff --git a/third_party/WebKit/Source/modules/crypto/Crypto.cpp b/third_party/WebKit/Source/modules/crypto/Crypto.cpp
|
| index b535622a0d6f4547db88d4a9b2c0a505317ff457..4ac57bf195ac817d3b7984ac2724076787b59be3 100644
|
| --- a/third_party/WebKit/Source/modules/crypto/Crypto.cpp
|
| +++ b/third_party/WebKit/Source/modules/crypto/Crypto.cpp
|
| @@ -55,10 +55,7 @@ bool isIntegerArray(DOMArrayBufferView* array)
|
|
|
| DOMArrayBufferView* Crypto::getRandomValues(DOMArrayBufferView* array, ExceptionState& exceptionState)
|
| {
|
| - if (!array) {
|
| - exceptionState.throwDOMException(TypeMismatchError, "The provided ArrayBufferView is null.");
|
| - return nullptr;
|
| - }
|
| + ASSERT(array);
|
| if (!isIntegerArray(array)) {
|
| exceptionState.throwDOMException(TypeMismatchError, String::format("The provided ArrayBufferView is of type '%s', which is not an integer array type.", array->typeName()));
|
| return nullptr;
|
|
|