From b3bff6e1688f46da9ca483275c9bcd5e11d44667 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 12 Sep 2017 16:52:42 +0000 Subject: [PATCH] Fixed Package with name empty git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@153022 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/generator/InfoGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/InfoGenerator.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/InfoGenerator.java index 6b82c95..c9453f6 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/InfoGenerator.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/InfoGenerator.java @@ -152,7 +152,9 @@ public class InfoGenerator { infos.add("Packages:"); for (InterpreterPackageInfo info : project.getInputData().getInterpreterInfo() .getInterpreterPackagesInfo()) { - infos.add("Package Name: " + info.getName()); + if(info.getName()!=null&& !info.getName().isEmpty()){ + infos.add("Package Name: " + info.getName()); + } } }