missing NULL check in own recent commit,
authorCampbell Barton <ideasman42@gmail.com>
Tue, 30 Nov 2010 19:12:17 +0000 (19:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 30 Nov 2010 19:12:17 +0000 (19:12 +0000)
source/blender/editors/screen/screen_ops.c

index 2f9028d..bcfddd0 100644 (file)
@@ -307,7 +307,7 @@ int ED_operator_posemode(bContext *C)
 {
        Object *obact= CTX_data_active_object(C);
 
-       if (!(obact->mode & OB_MODE_EDIT)) {
+       if (obact && !(obact->mode & OB_MODE_EDIT)) {
                Object *obpose;
                if((obpose= ED_object_pose_armature(obact))) {
                        if((obact == obpose) || (obact->mode & OB_MODE_WEIGHT_PAINT)) {