mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Avoid an NPE if initial version not set
This commit is contained in:
@ -124,12 +124,15 @@ public class ApiInstanceMetaData implements ApiOperation.EnabledOperationsProvid
|
||||
if(apiTableMetaData != null)
|
||||
{
|
||||
if(BooleanUtils.isNotTrue(apiTableMetaData.getIsExcluded()))
|
||||
{
|
||||
if(StringUtils.hasContent(apiTableMetaData.getInitialVersion()))
|
||||
{
|
||||
validator.assertCondition(allVersions.contains(new APIVersion(apiTableMetaData.getInitialVersion())), "Table " + table.getName() + "'s initial API version is not a recognized version for api " + apiName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// todo - find duplicate tableApiNames!!
|
||||
}
|
||||
|
Reference in New Issue
Block a user