[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #37 from maxme/category-fixes
Browse files Browse the repository at this point in the history
fix #36: NPE - category have a parent with an invalid category id
  • Loading branch information
roundhill committed Aug 9, 2013
2 parents ac5fa7d + 6e42235 commit 93895a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/wordpress/android/models/CategoryNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static CategoryNode createCategoryTreeFromDB(int blogId) {
if (category.getParentId() == 0) { // root node
currentRootNode = rootCategory;
} else {
currentRootNode = categoryMap.get(category.getParentId());
currentRootNode = categoryMap.get(category.getParentId(), rootCategory);
}
currentRootNode.children.put(category.getName(), categoryMap.get(category.getCategoryId()));
}
Expand Down

0 comments on commit 93895a8

Please sign in to comment.