Fix critical warning in roster manager when account gets offline

This commit is contained in:
Marvin W 2019-10-18 14:31:23 +02:00
parent 7d561ddfab
commit 2da8fd6881
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -33,10 +33,12 @@ public class RosterManager : StreamInteractionModule, Object {
}
public Collection<Roster.Item> get_roster(Account account) {
if (roster_stores[account] == null) return new ArrayList<Roster.Item>();
return roster_stores[account].get_roster();
}
public Roster.Item? get_roster_item(Account account, Jid jid) {
if (roster_stores[account] == null) return null;
return roster_stores[account].get_item(jid);
}