diff --git a/.classpath b/.classpath index 05bbe04..d41851e 100644 --- a/.classpath +++ b/.classpath @@ -40,6 +40,7 @@ + diff --git a/pom.xml b/pom.xml index 2dac5d6..7d23da2 100644 --- a/pom.xml +++ b/pom.xml @@ -100,12 +100,7 @@ ${gwtVersion} - - com.google.gwt - gwt-dev - ${gwtVersion} - - + - + diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/store/ColumnTypeCodeStore.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/store/ColumnTypeCodeStore.java index 8431242..1cebddc 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/store/ColumnTypeCodeStore.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/store/ColumnTypeCodeStore.java @@ -40,6 +40,12 @@ public class ColumnTypeCodeStore implements Serializable { public static ArrayList getColumnTypeCodes(TRId trId) { store = new ArrayList(); + if(trId==null|| trId.getTableTypeName()==null){ + Log.debug("Attention no valid table type, trId:"+trId); + store.add(annotation); + return store; + } + if (trId.getTableTypeName().compareTo("Generic") == 0) { store.add(annotation); store.add(attribute); @@ -75,6 +81,12 @@ public class ColumnTypeCodeStore implements Serializable { public static ArrayList getColumnTypeCodesForAddColumn(TRId trId) { store = new ArrayList(); + if(trId==null|| trId.getTableTypeName()==null){ + Log.debug("Attention no valid table type, trId:"+trId); + store.add(annotation); + return store; + } + if (trId.getTableTypeName().compareTo("Generic") == 0) { store.add(annotation); store.add(attribute); diff --git a/src/main/resources/org/gcube/portlets/user/td/columnwidget/ColumnWidget.gwt.xml b/src/main/resources/org/gcube/portlets/user/td/columnwidget/ColumnWidget.gwt.xml index f50f1a9..217b81c 100644 --- a/src/main/resources/org/gcube/portlets/user/td/columnwidget/ColumnWidget.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/td/columnwidget/ColumnWidget.gwt.xml @@ -28,7 +28,21 @@ - + + + + + + + + + + +