GNOME Bugzilla – Bug 780315
user-accounts: Prevent a potential crash with an empty user list
Last modified: 2017-03-21 09:22:39 UTC
Pointed by coverity. This would only ever be hit if AccountsService returns 0 users...
Created attachment 348332 [details] [review] user-accounts: Prevent a potential crash with an empty user list From a Coverity scan: panels/user-accounts/um-user-panel.c:1312:20: warning: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'list')
Forgot to say that this doesn't apply after the recent users panel redesign - it handles this case without crashing already. So this is only for old stable branches <= 3.22
Isn't it a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=773673 ? If so, I would go with your patch, but Ondrej suggested that we would have an empty-state https://bugzilla.gnome.org/show_bug.cgi?id=773673#c11
We should push this patch for stable releases and reconsider what to do with master...
It would be nice to propose a similar fix for 3.24 also...
Let's deal with it on the Bug 773673. *** This bug has been marked as a duplicate of bug 773673 ***