fix for crash when checking for locked action.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 26 Jul 2012 13:40:48 +0000 (13:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 26 Jul 2012 13:40:48 +0000 (13:40 +0000)
source/blender/editors/animation/keyframes_draw.c

index 85731933168651d70e7166aa8b48d9608953934d..d024e2b0393e58c2fbb3948a06e14dfe925b0df8 100644 (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);