Updated discard tr with incorrect last table

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@92583 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-03 19:28:41 +00:00
parent a927f59cf0
commit cd7de8b8bf
1 changed files with 11 additions and 4 deletions

View File

@ -744,10 +744,16 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
int i;
for (i = 0; i < trs.size(); i++) {
TabularResource tr = trs.get(i);
TabResource t = retriveTRMetadataFromService(service, tr, i);
if (t.getTrId() != null) {
ltr.add(t);
try {
TabResource t = retriveTRMetadataFromService(service, tr, i);
if (t.getTrId() != null) {
ltr.add(t);
}
} catch (Exception e) {
logger.error("TabResource discarded: " + tr + " cause: "
+ e.getMessage());
}
}
logger.debug("Codelists retrived: " + ltr);
@ -1103,7 +1109,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
ltr.add(t);
}
} catch (Exception e) {
logger.error("TabResource discarded: "+tr+" cause: "+e.getMessage());
logger.error("TabResource discarded: " + tr + " cause: "
+ e.getMessage());
}
}