From f12c17abfe14cd7f7663a2206dd33cf9b168b0d6 Mon Sep 17 00:00:00 2001 From: julianeisel Date: Mon, 2 Feb 2015 03:02:39 +0100 Subject: Fix T43501: Crash on custom node tree creation --- source/blender/editors/space_node/node_draw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 0de231ba7cc..87a64e95e63 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -1302,12 +1302,10 @@ void drawnodespace(const bContext *C, ARegion *ar) bNodeLinkDrag *nldrag; LinkData *linkdata; - BLI_assert(snode->id != NULL); - path = snode->treepath.last; /* update tree path name (drawn in the bottom left) */ - if (UNLIKELY(!STREQ(path->node_name, snode->id->name + 2))) { + if (snode->id && UNLIKELY(!STREQ(path->node_name, snode->id->name + 2))) { BLI_strncpy(path->node_name, snode->id->name + 2, sizeof(path->node_name)); } -- cgit v1.2.3