Fixed exception reported on Google Play (not sure how to trigger it, but this can't hurt)

This commit is contained in:
Synced Synapse 2015-04-13 22:59:49 +01:00
parent adcb7bdf49
commit 59a42eb8bb
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ public class HostManager {
.query(MediaContract.Hosts.CONTENT_URI,
MediaContract.Hosts.ALL_COLUMNS,
null, null, null);
if (cursor == null) return hosts;
if (cursor.getCount() > 0) {
while (cursor.moveToNext()) {