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>2011-01-02 05:48:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-02 05:48:45 +0300
commit03d046ad4f1015368198f87de2037255fe7cd713 (patch)
treecb3f927619a05ca0f9eae35cd7f542f5be3c41b1 /source/blender/makesrna/intern/rna_sequencer_api.c
parent129b6190ed7a5f3e817f0bcf69c7a5ab60645c3a (diff)
report & fix [#25447] SceneObjects null pointer dereference crash
from Dan Eicher (dna) noticed sequence swap also wasn't checking for None.
Diffstat (limited to 'source/blender/makesrna/intern/rna_sequencer_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_sequencer_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer_api.c b/source/blender/makesrna/intern/rna_sequencer_api.c
index 425bad9fcd7..245a36d9573 100644
--- a/source/blender/makesrna/intern/rna_sequencer_api.c
+++ b/source/blender/makesrna/intern/rna_sequencer_api.c
@@ -66,7 +66,7 @@ void RNA_api_sequence_strip(StructRNA *srna)
func= RNA_def_function(srna, "swap", "rna_Sequence_swap_internal");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
parm= RNA_def_pointer(func, "other", "Sequence", "Other", "");
- RNA_def_property_flag(parm, PROP_REQUIRED);
+ RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
}
#endif