diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-21 11:54:21 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-21 11:54:21 +0100 |
commit | 25c4ea7a6e73d4d4a0dcf61eff15ea8d055c1c46 (patch) | |
tree | 7ba04ab7f9402f58f99bef6f8cf1148b4820a394 /desktop/tree.c | |
parent | 698b7c61f0dcc8f056ce7b66bb9e92850806b0b5 (diff) | |
download | netsurf-25c4ea7a6e73d4d4a0dcf61eff15ea8d055c1c46.tar.gz netsurf-25c4ea7a6e73d4d4a0dcf61eff15ea8d055c1c46.tar.bz2 |
stop treeview redraw failing because of bad global state.
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index 15118c3d2..c29afa761 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -212,7 +212,9 @@ static bool treeview_test_redraw(struct tree *tree, int x, int y, switch (tree->flags) { case TREE_SSLCERT: - sslcert_viewer_redraw(ssl_current_session, x, y, &clip, ctx); + if (ssl_current_session != NULL) { + sslcert_viewer_redraw(ssl_current_session, x, y, &clip, ctx); + } return true; case TREE_COOKIES: cookie_manager_redraw(x, y, &clip, ctx); |