Skip to content

Commit 1e901eb

Browse files
committed
Merge branch 'category-fixes' into unittests
2 parents ac5fa7d + 6e42235 commit 1e901eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/wordpress/android/models/CategoryNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static CategoryNode createCategoryTreeFromDB(int blogId) {
7979
if (category.getParentId() == 0) { // root node
8080
currentRootNode = rootCategory;
8181
} else {
82-
currentRootNode = categoryMap.get(category.getParentId());
82+
currentRootNode = categoryMap.get(category.getParentId(), rootCategory);
8383
}
8484
currentRootNode.children.put(category.getName(), categoryMap.get(category.getCategoryId()));
8585
}

0 commit comments

Comments
 (0)