diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-01-25 17:02:51 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-01-25 17:02:51 +0300 |
commit | d7de954b1e63100a68b6be81c42b3e8987d011c4 (patch) | |
tree | 990b2712a0a84f3be3489a6a4f9a59af02369ab9 /source/blender/src/editsima.c | |
parent | d473b4b17d7ba0a366ce3daded1498725e94ce49 (diff) |
A couple of null checkes needed, patch provided by Diego Borghetti of
Plumiferos
patch tracker:
https://projects.blender.org/tracker/index.php?func=detail&aid=5825&group_id=9&atid=127
Kent
Diffstat (limited to 'source/blender/src/editsima.c')
-rw-r--r-- | source/blender/src/editsima.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editsima.c b/source/blender/src/editsima.c index b7a5c168f7e..513dfef4724 100644 --- a/source/blender/src/editsima.c +++ b/source/blender/src/editsima.c @@ -1966,7 +1966,8 @@ void BIF_image_update_frame(void) } else if(sa->spacetype==SPACE_NODE) { SpaceNode *snode= sa->spacedata.first; - if(snode->treetype==NTREE_COMPOSIT) { + if (!snode) return; + if((snode->treetype==NTREE_COMPOSIT) && (snode->nodetree)) { bNode *node; for(node= snode->nodetree->nodes.first; node; node= node->next) { if(node->id && node->type==CMP_NODE_IMAGE) { |