Revision 45789 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureAttributeDescriptor.java
DefaultFeatureAttributeDescriptor.java | ||
---|---|---|
2210 | 2210 |
builder.add("fk_closedlist", this.getForeingKey().isClosedList()); |
2211 | 2211 |
} |
2212 | 2212 |
builder.add("availableValuesExpression", this.availableValuesExpression); |
2213 |
builder.add("defaultValue", Objects.toString(this.defaultValue, ""));
|
|
2213 |
builder.add("defaultValue", Objects.toString(this.defaultValue, null));
|
|
2214 | 2214 |
builder.add("dataProfile", this.getDataProfileName()); |
2215 | 2215 |
builder.add("tags", tags); |
2216 | 2216 |
builder.add("availableValues", availableValues); |
... | ... | |
2256 | 2256 |
this.dataProfile = json.getString("dataProfile", null); |
2257 | 2257 |
try { |
2258 | 2258 |
this.defaultValue = json.getString("defaultValue", null); |
2259 |
if(!ExpressionUtils.isDynamicText((String) this.defaultValue)){
|
|
2259 |
if(!(this.defaultValue instanceof String && ExpressionUtils.isDynamicText((String) this.defaultValue))){
|
|
2260 | 2260 |
this.defaultValue = this.coerce(this.defaultValue); |
2261 | 2261 |
} |
2262 | 2262 |
} catch (Exception ex) { |
Also available in: Unified diff