Jean-Francois Leveque

Gestion des versions de publisher non trouvées https://tree.taiga.io/project/jr-utily-grog-v3/us/112

......@@ -129,6 +129,9 @@ public class PublisherVersionView implements Serializable {
PublisherVersion publisherVersion;
publisherVersion = publisherService.getPublisherVersion(publisherVersionId);
if (publisherVersion == null) {
throw new RuntimeException("Publisher version not found");
}
publisherVersionAuthor = publisherVersion.getPublisherVersionAuthor();
publisherVersionDatetime = publisherVersion.getPublisherVersionDatetime();
}
......@@ -167,11 +170,15 @@ public class PublisherVersionView implements Serializable {
}
public void loadData() {
PublisherVersion publisherVersion = null;
logger.debug("publisherVersionId = {}", this.publisherVersionId);
if (publisherVersionId != 0) {
PublisherVersion publisherVersion = publisherService.getPublisherVersion(publisherVersionId);
publisherVersion = publisherService.getPublisherVersion(publisherVersionId);
}
if (publisherVersion != null) {
logger.debug("Found a publisher version : {}", publisherVersion.toString());
......