Index: Source/core/html/track/WebVTTParser.cpp |
diff --git a/Source/core/html/track/WebVTTParser.cpp b/Source/core/html/track/WebVTTParser.cpp |
index 4b2dfc22fc6148a2aba985b4302aba35f032b9a3..4b8cae050e6bb6bc9d93627fc4b21a3c8dd2ccf2 100644 |
--- a/Source/core/html/track/WebVTTParser.cpp |
+++ b/Source/core/html/track/WebVTTParser.cpp |
@@ -330,8 +330,9 @@ PassRefPtr<DocumentFragment> WebVTTParser::createDocumentFragmentFromCueText(co |
ASSERT(m_scriptExecutionContext->isDocument()); |
Document* document = toDocument(m_scriptExecutionContext); |
+ ASSERT(document); |
- RefPtr<DocumentFragment> fragment = DocumentFragment::create(document); |
+ RefPtr<DocumentFragment> fragment = DocumentFragment::create(*document); |
if (!text.length()) { |
fragment->parserAppendChild(Text::create(document, "")); |