Skip to content

Commit

Permalink
Use empty rather than null for default enum description
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-hickman-epistimis committed Mar 1, 2024
1 parent 676012a commit 4fff326
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: "");
}

}

0 comments on commit 4fff326

Please sign in to comment.