diff --git a/Procfile b/Procfile index 4effdab..c25befe 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT exmp-blog-webapp/target/*.war \ No newline at end of file +web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT webapp/target/*.war \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4cb45e7..0ed6f34 100644 --- a/pom.xml +++ b/pom.xml @@ -54,10 +54,8 @@ org.eclipse.jetty - jetty-runner 9.4.19.v20190610 - jetty-runner.jar diff --git a/service/src/main/java/org/examproject/blog/util/TagUtils.java b/service/src/main/java/org/examproject/blog/util/TagUtils.java index ba1b9e9..9646cd7 100644 --- a/service/src/main/java/org/examproject/blog/util/TagUtils.java +++ b/service/src/main/java/org/examproject/blog/util/TagUtils.java @@ -103,7 +103,7 @@ public Set getEntryTagSet( // confirm the existence of the entry's tag. List entryTagList = entryTagRepository.findByEntryAndTag(entry, tag); // this tag is new one for the entry. - if (entryTagList == null) { + if (entryTagList.isEmpty()) { entryTag = context.getBean(EntryTag.class); entryTag.setEntry(entry); entryTag.setTag(tag);