app: Avoid crash when using Windows -> Recently Closed Docks

This is not a proper fix for anything, it is just avoidance of a
crash.
This commit is contained in:
Martin Nordholts 2010-02-13 17:16:53 +01:00
parent fe58e525b8
commit 7e94bb3ef2
1 changed files with 2 additions and 1 deletions

View File

@ -416,7 +416,8 @@ gimp_session_info_restore (GimpSessionInfo *info,
info->p->open = FALSE;
info->p->screen = DEFAULT_SCREEN;
if (! info->p->factory_entry->dockable)
if (info->p->factory_entry &&
! info->p->factory_entry->dockable)
{
GIMP_LOG (DIALOG_FACTORY, "restoring toplevel \"%s\" (info %p)",
info->p->factory_entry->identifier,