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:
authorCampbell Barton <ideasman42@gmail.com>2012-09-11 06:18:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-11 06:18:27 +0400
commita0ae47f06c6232a91202bd06ea173b955735596b (patch)
treed0c928e2167037eec5f01277ebe7dc0885168d59 /source/blender/editors/physics
parent652f64762c31bd1cfcac7ae05f184b70713b2034 (diff)
add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after.
also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks).
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 3ed31abca94..b7ce32aa10a 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4135,7 +4135,7 @@ static void PE_create_particle_edit(Scene *scene, Object *ob, PointCache *cache,
if (cache && cache->flag & PTCACHE_DISK_CACHE)
return;
- if (psys == NULL && cache->mem_cache.first == NULL)
+ if (psys == NULL && (cache && cache->mem_cache.first == NULL))
return;
if (!edit) {