Fix crash in unloaded userpic handling.
This commit is contained in:
parent
e992702783
commit
147079ce2a
|
@ -241,6 +241,9 @@ bool PeerData::useEmptyUserpic() const {
|
||||||
|
|
||||||
StorageKey PeerData::userpicUniqueKey() const {
|
StorageKey PeerData::userpicUniqueKey() const {
|
||||||
if (useEmptyUserpic()) {
|
if (useEmptyUserpic()) {
|
||||||
|
if (!_userpicEmpty) {
|
||||||
|
refreshEmptyUserpic();
|
||||||
|
}
|
||||||
return _userpicEmpty->uniqueKey();
|
return _userpicEmpty->uniqueKey();
|
||||||
}
|
}
|
||||||
return storageKey(_userpicLocation);
|
return storageKey(_userpicLocation);
|
||||||
|
|
Loading…
Reference in New Issue