Skip to content

Commit

Permalink
add additional null check to extractPathsFromFileValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Srdjan Miljevic committed Feb 12, 2018
1 parent 966c175 commit ffe93f6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ private Map<String, Integer> convertToMap(List<IntermediaryFileEntity> filesForR

private Set<String> extractPathsFromFileValue(FileValue file) {
Set<String> paths = new HashSet<>();
paths.add(file.getPath());

String path = file.getPath();
if (path != null) {
paths.add(path);
}

if (file.getSecondaryFiles() != null) {
for (FileValue f : file.getSecondaryFiles()) {
Expand Down

0 comments on commit ffe93f6

Please sign in to comment.