Index: third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp |
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp b/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp |
index 656f144cb22eaf3c6dec8a2357843a12190f8c11..b147d96ad6f1c5bb4ab3bb365d02b1bd9d462580 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp |
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp |
@@ -42,12 +42,9 @@ namespace blink { |
void FileWriterSync::write(Blob* data, ExceptionState& exceptionState) |
{ |
+ ASSERT(data); |
ASSERT(writer()); |
ASSERT(m_complete); |
- if (!data) { |
- exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage); |
- return; |
- } |
prepareForWrite(); |
writer()->write(position(), data->uuid()); |