aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/roster_manager.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/service/roster_manager.vala b/libdino/src/service/roster_manager.vala
index 5181b90e..6f004c01 100644
--- a/libdino/src/service/roster_manager.vala
+++ b/libdino/src/service/roster_manager.vala
@@ -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);
}