Skip to content

Commit

Permalink
Merge pull request #96 from thevpc/fix/null-pointer-exception-when-up…
Browse files Browse the repository at this point in the history
…dating

Uncomment throwing exception when updating a non installed package
  • Loading branch information
thevpc committed Oct 30, 2021
2 parents 2f23f47 + 97ca584 commit 58cd334
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,7 @@ protected NutsUpdateResult checkRegularUpdate(NutsId id, Type type, NutsVersion
// }
// }
if (d0 == null) {
return r;
//throw new NutsIllegalArgumentException(getSession(), NutsMessage.cstyle("%s is not yet installed for it to be updated.",id));
throw new NutsIllegalArgumentException(getSession(), NutsMessage.cstyle("%s is not yet installed for it to be updated.", id));
}
if (!d0.getInstallInformation().isDefaultVersion()) {
shouldUpdateDefault = true;
Expand Down

0 comments on commit 58cd334

Please sign in to comment.