fixed NPE

This commit is contained in:
Sandro La Bruzzo 2020-02-26 14:31:34 +01:00
parent bc342bf73a
commit 5d0f46651b
2 changed files with 7 additions and 5 deletions

View File

@ -34,6 +34,8 @@ public class ScholixResource implements Serializable {
resource.setObjectType(summary.getTypology().toString());
if (summary.getTitle() != null)
resource.setTitle(summary.getTitle().stream().findAny().orElse(null));
if (summary.getAuthor() != null)

View File

@ -27,7 +27,7 @@
</parameters>
<start to="generateSummary"/>
<start to="generateScholix"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
@ -73,7 +73,7 @@
<arg>--workingDirPath</arg><arg>${workingDirPath}</arg>
<arg>--graphPath</arg><arg>${graphPath}</arg>
</spark>
<ok to="generateScholix"/>
<ok to="indexSummary"/>
<error to="Kill"/>
</action>