diff --git a/com.epistimis.uddl/src/com/epistimis/uddl/DefaultValue.xtend b/com.epistimis.uddl/src/com/epistimis/uddl/DefaultValue.xtend index f60e58b..8838e23 100644 --- a/com.epistimis.uddl/src/com/epistimis/uddl/DefaultValue.xtend +++ b/com.epistimis.uddl/src/com/epistimis/uddl/DefaultValue.xtend @@ -138,7 +138,7 @@ class DefaultValue { def dispatch String getDefaultValueAsString( PlatformEnumeration value, EObject ctx) { val LogicalEnumeratedBase leb = getEnumValue(value); - return (leb === null) ? QualifiedName.EMPTY.toString(): MessageFormat.format(EXPLAINED_VALUE_FMT,qnp.minimalReferenceString(leb,ctx),leb.description); + return (leb === null) ? QualifiedName.EMPTY.toString(): MessageFormat.format(EXPLAINED_VALUE_FMT,qnp.minimalReferenceString(leb,ctx),leb.description !== null? leb.description: ""); } } \ No newline at end of file