Skip to content

Commit

Permalink
#462 - ContainerUtil.addAllNotNull must not be null
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Sep 3, 2017
1 parent bd9e420 commit 572ef77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mobi/hsz/idea/gitignore/lang/kind/GitLanguage.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public boolean isOuterFileSupported() {
public List<VirtualFile> getOuterFiles(@NotNull final Project project) {
final Pair<Project, IgnoreFileType> key = Pair.create(project, getFileType());
if (!outerFiles.containsKey(key)) {
super.getOuterFiles(project);
final ArrayList<VirtualFile> files = ContainerUtil.newArrayList(ContainerUtil.filter(
IgnoreFilesIndex.getFiles(project, GitExcludeFileType.INSTANCE),
new Condition<VirtualFile>() {
Expand All @@ -112,7 +111,7 @@ public boolean value(@NotNull VirtualFile virtualFile) {
}
}
));
ContainerUtil.addAllNotNull(outerFiles.get(key), files);
ContainerUtil.addAllNotNull(super.getOuterFiles(project), files);
}
return outerFiles.get(key);
}
Expand Down

0 comments on commit 572ef77

Please sign in to comment.