Fixed refresh bug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@101192 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-30 09:17:32 +00:00
parent 5cdd185053
commit 7679e34657
1 changed files with 3 additions and 1 deletions

View File

@ -545,9 +545,11 @@ public class TabularDataController {
}
protected void doOpenTRIdAfterServerUpdate() {
if(trId.getId().compareTo(openTRIdAfterServerUpdate.getId())==0
if(trId!=null && trId.getId().compareTo(openTRIdAfterServerUpdate.getId())==0
&& trId.getTableId().compareTo(trId.getTableId())==0){
Log.debug("Open Table Break table just open");
} else {
Log.debug("Open Table new Table for TR");
openTable(openTRIdAfterServerUpdate);
}
}