Skip to content

Commit

Permalink
NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
akozlova committed Jan 10, 2017
1 parent d6059b2 commit f809707
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -450,7 +450,7 @@ protected HierarchyTreeBuilder getCurrentBuilder() {
}

protected final HierarchyTreeBuilder getBuilderForType(String viewType) {
return myType2BuilderMap.get(viewType);
return viewType == null ? null : myType2BuilderMap.get(viewType);
}

protected final Iterable<HierarchyTreeBuilder> getBuilders() {
Expand Down

0 comments on commit f809707

Please sign in to comment.