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