[#19859] Lasso select causing Blender to crash
authorCampbell Barton <ideasman42@gmail.com>
Wed, 11 Nov 2009 09:58:24 +0000 (09:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 11 Nov 2009 09:58:24 +0000 (09:58 +0000)
missing null check in own commit

source/blender/editors/space_view3d/view3d_select.c

index 4b35cd1..e060781 100644 (file)
@@ -363,7 +363,7 @@ static void do_lasso_select_pose(ViewContext *vc, short mcords[][2], short moves
        
        {
                bArmature *arm= ob->data;
-               if((arm->act_bone->flag & BONE_SELECTED)==0) {
+               if(arm->act_bone && (arm->act_bone->flag & BONE_SELECTED)==0) {
                        arm->act_bone= NULL;
                }
        }