Skip to content

Commit

Permalink
[[IGNORE]]の場合にNullPointerExceptionが発生しないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed May 26, 2018
1 parent 13f8b80 commit ed9d061
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ private CountResult[] count(File file) throws IOException {
StepCounter counter = StepCounterFactory.getCounter(file.getName());
if(counter!=null){
CountResult result = counter.count(file, Util.getFileEncoding(file));
return new CountResult[]{result};
if(result == null){
return new CountResult[]{};
} else {
return new CountResult[]{result};
}
} else {
// 未対応の形式の場合は形式にnullを設定して返す
return new CountResult[]{
Expand Down

0 comments on commit ed9d061

Please sign in to comment.