Skip to content

Commit

Permalink
Updated XMD endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Bezold committed Feb 14, 2018
1 parent 5e229b1 commit c96ca3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ private static void validateSchema(ExternalFileSchema schema, PrintStream logger

if(user_field.getfType()==FieldType.MEASURE)
{
if(user_field.getDefaultValue()==null || !isLatinNumber(user_field.getDefaultValue()))
if(user_field.getDefaultValue()!=null && !isLatinNumber(user_field.getDefaultValue()))
{
message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must have default numeric value\n");
message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must be either null or have a default numeric value\n");
}

if(!(user_field.getPrecision()>0 && user_field.getPrecision()<19))
Expand Down

0 comments on commit c96ca3f

Please sign in to comment.