Fixed Package with name empty

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@153028 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-09-12 17:39:13 +00:00
parent b3bff6e168
commit c8a72f5e07
1 changed files with 4 additions and 1 deletions

View File

@ -153,7 +153,10 @@ public class InfoGenerator {
for (InterpreterPackageInfo info : project.getInputData().getInterpreterInfo()
.getInterpreterPackagesInfo()) {
if(info.getName()!=null&& !info.getName().isEmpty()){
infos.add("Package Name: " + info.getName());
String pName=info.getName().trim();
if(pName!=null&& !pName.isEmpty()){
infos.add("Package Name: " + pName);
}
}
}
}