Index: Source/WebKit/chromium/src/WebFrameImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebFrameImpl.cpp (revision 129176) |
+++ Source/WebKit/chromium/src/WebFrameImpl.cpp (working copy) |
@@ -1016,7 +1016,7 @@ |
m_frame->loader()->prepareForHistoryNavigation(); |
RefPtr<HistoryItem> currentItem = m_frame->loader()->history()->currentItem(); |
- m_inSameDocumentHistoryLoad = currentItem->shouldDoSameDocumentNavigationTo(historyItem.get()); |
+ m_inSameDocumentHistoryLoad = currentItem && currentItem->shouldDoSameDocumentNavigationTo(historyItem.get()); |
m_frame->page()->goToItem(historyItem.get(), |
FrameLoadTypeIndexedBackForward); |
m_inSameDocumentHistoryLoad = false; |