wizard: Prevent crash

Summary: If we get here when curpage is NULL, we'll crash later, so we should test for it.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2793
This commit is contained in:
Derek Foreman 2015-07-03 11:55:40 -04:00 committed by Mike Blumenkrantz
parent fd9780f716
commit 8e91f32978
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ static Eina_Bool
_e_wizard_cb_icons_update(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED)
{
got_icons = EINA_TRUE;
if (_e_wizard_check_xdg())
if (curpage && _e_wizard_check_xdg())
_e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
}