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-12-18 20:52:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-18 20:52:46 +0400
commit27796a34b121ed762044fef353ef57084175132d (patch)
tree62b39a1179e1b69f6c62c32c0e27bd1991bf89ea /source/blender/windowmanager/intern/wm_operators.c
parent54bab21ca0abb63b71bc47ce092ffcdd192b70e0 (diff)
fix for crash in own commit - happend when changing userprefs.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 00fc8e7662b..5d9819689d3 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -584,6 +584,10 @@ static char *wm_prop_pystring_from_context(bContext *C, PointerRNA *ptr, Propert
const char *identifier = link->data;
PointerRNA ctx_ptr = CTX_data_pointer_get(C, identifier);
+ if (ctx_ptr.type == NULL) {
+ continue;
+ }
+
if (ptr->id.data == ctx_ptr.id.data) {
if ((ptr->data == ctx_ptr.data) &&
(ptr->type == ctx_ptr.type))