diff options
author | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2007-12-12 17:07:24 +0300 |
---|---|---|
committer | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2007-12-12 17:07:24 +0300 |
commit | 29054847a757c79381f7ac4243cf94d5131a2cb7 (patch) | |
tree | f034292e4128aa8fea5449262661904a99386ff9 /source/blender/src | |
parent | 4bb0b1c11fa008b9d9e0a8a8ca7883b55fa82463 (diff) |
missing null check in node editor.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/editnode.c | 2 |
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) */ |