| Index: third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
|
| index 9ea9e0dfdf9266329deb5761592abde71230d524..494578d72c00f5d3f3559f331c66240d2cfc1d6e 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
|
| @@ -196,6 +196,8 @@ MIDIOutput::~MIDIOutput()
|
|
|
| void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& exceptionState)
|
| {
|
| + ASSERT(array);
|
| +
|
| if (timestamp == 0.0)
|
| timestamp = now(executionContext());
|
|
|
| @@ -203,9 +205,6 @@ void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& ex
|
| // This should be performed even if |array| is invalid.
|
| open();
|
|
|
| - if (!array)
|
| - return;
|
| -
|
| if (MessageValidator::validate(array, exceptionState, midiAccess()->sysexEnabled()))
|
| midiAccess()->sendMIDIData(m_portIndex, array->data(), array->length(), timestamp);
|
| }
|
| @@ -233,6 +232,7 @@ void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, Exception
|
|
|
| void MIDIOutput::send(DOMUint8Array* data, ExceptionState& exceptionState)
|
| {
|
| + ASSERT(data);
|
| send(data, 0.0, exceptionState);
|
| }
|
|
|
|
|