Skip to content

Commit

Permalink
Fixed NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
danechitoaie committed Jul 2, 2018
1 parent f421286 commit 39e9237
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,12 @@ public void perform(
List<String> previousDataFingerprints = new ArrayList<>();
Run<?, ?> previousBuild = build.getPreviousBuild();
if (previousBuild != null) {
previousBuild.getActions(DataImportAction.class).forEach(
(dataImportAction) -> previousDataFingerprints.addAll(dataImportAction.getDataFingerprints())
);
previousBuild.getActions(DataImportAction.class).forEach((dataImportAction) -> {
List<String> dataFingerprints = dataImportAction.getDataFingerprints();
if (dataFingerprints != null && !dataFingerprints.isEmpty()) {
previousDataFingerprints.addAll(dataFingerprints);
}
});
}

DataImportResult dataImportResult = workspace.act(new DataImportCallable(
Expand Down

0 comments on commit 39e9237

Please sign in to comment.