missing null check in node editor.

This commit is contained in:
2007-12-12 14:07:24 +00:00
parent 4bb0b1c11f
commit 29054847a7

View File

@@ -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) */