Don't try to draw NULL history.

This commit is contained in:
Michael Drake 2014-10-18 10:31:47 +01:00
parent 38483a9aa5
commit 376c96831d
1 changed files with 5 additions and 0 deletions

View File

@ -766,6 +766,11 @@ bool browser_window_history_redraw(struct browser_window *bw,
assert(bw != NULL);
history = bw->history;
if (history == NULL) {
LOG(("Attempt to draw NULL history."));
return false;
}
if (!history->start)
return true;
return browser_window_history__redraw_entry(history, history->start,