Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitionaire committed Apr 16, 2015
1 parent 5dba226 commit 2c3ae30
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public PackageRevisionMessage latestModificationSince(final PackageMaterialPrope
LOGGER.info(String.format("no modification since %s", previouslyKnownRevision.getRevision()));
return null;
}

LOGGER.info("latest revision is " + updatedPackage.getRevision());
if (updatedPackage.getTimestamp().getTime() < previouslyKnownRevision.getTimestamp().getTime())
LOGGER.warn(String.format("Updated Package %s published earlier (%s) than previous (%s, %s)",
Expand Down Expand Up @@ -150,7 +151,7 @@ private void validateConfig(final PackageMaterialProperties repoConfig, final Pa
private PackageRevisionMessage poll(final MavenRepoConfig repoConfig, final MavenPackageConfig packageConfig) {
final MavenRevision latest = new RepositoryClient(repoConfig, packageConfig).getLatest();
if (latest == null) {
return new PackageRevisionMessage();
return null;
}
return latest.toPackageRevision();
}
Expand Down

0 comments on commit 2c3ae30

Please sign in to comment.