Skip to content

Commit

Permalink
Fix nullPointer on new install
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Oct 21, 2024
1 parent 23a743b commit c676b18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ private Stream<Delta> getDeltas(final InstallContext installContext, final Versi
}

private Delta getInstallAndUpdateTasksDelta(final InstallContext installContext, final Version forVersion, @Nullable final Version versionFrom) {
final boolean isUpdate = forVersion.isStrictlyAfter(versionFrom);
final boolean isInstall = versionFrom == null;
final boolean isUpdate = !isInstall && forVersion.isStrictlyAfter(versionFrom);

return DeltaBuilder.install(forVersion, "setup-task install and update").addTasks(Stream.of(
isInstall ? getInstallTasks(installContext, forVersion) : Stream.<Task>empty(),
Expand Down

0 comments on commit c676b18

Please sign in to comment.