From 27567a6c760be523b77e4d95e544c60b6f9ddf84 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 30 Jul 2018 15:00:51 +0200 Subject: Fix T56020: Crash while opening .blend file made with older version. We need a NULL workspace check here, in some cases we get a SRTemp screen even though it's not tagged as temp... --- source/blender/blenloader/intern/versioning_280.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 39ceb527209..5b0a12a0b4c 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -112,6 +112,9 @@ static void do_version_workspaces_create_from_screens(Main *bmain) else { workspace = BKE_workspace_add(bmain, screen->id.name + 2); } + if (workspace == NULL) { + continue; /* Not much we can do.. */ + } BKE_workspace_layout_add(bmain, workspace, screen, screen->id.name + 2); } } -- cgit v1.2.3