Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 132690) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -5241,8 +5241,10 @@ |
return; |
} |
- if (DOMWindow* window = domWindow()) |
- window->console()->addMessage(source, type, level, message, sourceURL, lineNumber, callStack); |
+ if (DOMWindow* window = domWindow()) { |
+ if (Console* console = window->console()) |
+ console->addMessage(source, type, level, message, sourceURL, lineNumber, callStack); |
+ } |
} |
struct PerformTaskContext { |