Fix crash w/ auto-insert offset

This commit is contained in:
Campbell Barton 2016-07-22 04:17:24 +10:00
parent 1cc0ce58fd
commit 14995c5617
1 changed files with 1 additions and 1 deletions

View File

@ -1726,7 +1726,7 @@ static int node_insert_offset_modal(bContext *C, wmOperator *UNUSED(op), const w
float duration;
bool redraw = false;
if (!snode || event->type != TIMER || iofsd->anim_timer != event->customdata)
if (!snode || event->type != TIMER || iofsd == NULL || iofsd->anim_timer != event->customdata)
return OPERATOR_PASS_THROUGH;
duration = (float)iofsd->anim_timer->duration;