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:
parent
a927f59cf0
commit
cd7de8b8bf
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue