X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=blobdiff_plain;f=atk-adaptor%2Fadaptors%2Fcollection-adaptor.c;h=af45afcc93469b3ac13f6600d6e0e1d2370ab672;hp=11c73d82807ab293c81cabf0f695e5eb7d7f10e1;hb=0d5406c910195ab9869f055d6a5ae8efb333c8a2;hpb=76233f83c8a17d6deadfe34c86d5d8137f97acb0 diff --git a/atk-adaptor/adaptors/collection-adaptor.c b/atk-adaptor/adaptors/collection-adaptor.c index 11c73d8..af45afc 100644 --- a/atk-adaptor/adaptors/collection-adaptor.c +++ b/atk-adaptor/adaptors/collection-adaptor.c @@ -830,7 +830,7 @@ inorder (AtkObject * collection, MatchRulePrivate * mrp, NULL, TRUE, TRUE); /* Next, we look through the right subtree */ - while ((max == 0 || kount < max) && obj != collection) + while ((max == 0 || kount < max) && obj && obj != collection) { AtkObject *parent = atk_object_get_parent (obj); i = atk_object_get_index_in_parent (obj);