fix for crash when checking for locked action.

This commit is contained in:
Campbell Barton
2012-07-26 13:40:48 +00:00
parent 733edf8628
commit 0df907c4e2

View File

@@ -796,7 +796,7 @@ void draw_action_channel(View2D *v2d, AnimData *adt, bAction *act, float ypos)
{
DLRBT_Tree keys, blocks;
short locked = (act->id.lib != 0);
short locked = (act && act->id.lib != 0);
BLI_dlrbTree_init(&keys);
BLI_dlrbTree_init(&blocks);