Skip to content

Commit

Permalink
Fix NPE when opening foundingfather-colopedia BR#3176
Browse files Browse the repository at this point in the history
  • Loading branch information
wintertime committed Jan 13, 2020
1 parent 4e71459 commit d42cd7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public void addSubTrees(DefaultMutableTreeNode root) {
@Override
public void buildDetail(String id, JPanel panel) {
FoundingFather father = getSpecification().getFoundingFather(id);
buildDetail(father, panel);
if(father!=null)
buildDetail(father, panel);
}

/**
Expand Down

0 comments on commit d42cd7d

Please sign in to comment.