Added field null handler

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@115354 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-06-12 14:48:09 +00:00
parent 66672aa9e8
commit c56ff2882d
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ public class DialogEditProperties extends Dialog{
private void saveProperties(final boolean closeOnSuccess){
Map<String,String> prp = new HashMap<String, String>(fields.size());
for (TextField<String> field : fields) {
prp.put(field.getFieldLabel(), field.getValue());
String value = field.getValue()!=null?field.getValue():"";
prp.put(field.getFieldLabel(), value);
}
AppControllerExplorer.rpcWorkspaceService.setGcubeItemProperties(item.getIdentifier(), prp, new AsyncCallback<Void>() {