Fixed exception reported on Google Play (not sure how to trigger it, but this can't hurt)
This commit is contained in:
parent
adcb7bdf49
commit
59a42eb8bb
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue