Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamed Zaghaghi <hamed.zaghaghi@gmail.com>2007-12-12 17:07:24 +0300
committerHamed Zaghaghi <hamed.zaghaghi@gmail.com>2007-12-12 17:07:24 +0300
commit29054847a757c79381f7ac4243cf94d5131a2cb7 (patch)
treef034292e4128aa8fea5449262661904a99386ff9 /source/blender/src
parent4bb0b1c11fa008b9d9e0a8a8ca7883b55fa82463 (diff)
missing null check in node editor.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c
index 3c94c31a631..a14b0ccc389 100644
--- a/source/blender/src/editnode.c
+++ b/source/blender/src/editnode.c
@@ -1427,7 +1427,7 @@ void snode_autoconnect(SpaceNode *snode, bNode *node_to, int flag)
bNode *node, *nodefrom[8];
int totsock= 0, socktype=0;
- if(node_to->inputs.first==NULL)
+ if(node_to==NULL || node_to->inputs.first==NULL)
return;
/* no inputs for node allowed (code it) */