Fix crashes when trying to view categories (fixes: #408)
This commit is contained in:
parent
080bab482d
commit
9b5c2656ee
@ -636,11 +636,13 @@ public class DB {
|
|||||||
while (!c.isAfterLast()) {
|
while (!c.isAfterLast()) {
|
||||||
CommaSeparatedList categories = CommaSeparatedList
|
CommaSeparatedList categories = CommaSeparatedList
|
||||||
.make(c.getString(0));
|
.make(c.getString(0));
|
||||||
|
if (categories != null) {
|
||||||
for (String category : categories) {
|
for (String category : categories) {
|
||||||
if (!result.contains(category)) {
|
if (!result.contains(category)) {
|
||||||
result.add(category);
|
result.add(category);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
c.moveToNext();
|
c.moveToNext();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user