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/D2789
This commit is contained in:
Derek Foreman 2015-07-02 18:11:27 -04:00 committed by Mike Blumenkrantz
parent 62da0f32bf
commit c9958e8e03
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ _e_wizard_cb_desktops_update(void *data __UNUSED__, int ev_type __UNUSED__, void
if ((e) && (e->error))
xdg_error = EINA_TRUE;
got_desktops = EINA_TRUE;
if (_e_wizard_check_xdg())
if (curpage && _e_wizard_check_xdg())
_e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
}