diff --git a/packages/oslo-converter-uml-ea/lib/converter-handlers/AttributeConverterHandler.ts b/packages/oslo-converter-uml-ea/lib/converter-handlers/AttributeConverterHandler.ts index 716bcbb..d6d5c68 100644 --- a/packages/oslo-converter-uml-ea/lib/converter-handlers/AttributeConverterHandler.ts +++ b/packages/oslo-converter-uml-ea/lib/converter-handlers/AttributeConverterHandler.ts @@ -84,6 +84,7 @@ export class AttributeConverterHandler extends ConverterHandler { const externalUri: string = getTagValue(attribute, TagNames.ExternalUri, null); if (externalUri) { uriRegistry.attributeIdUriMap.set(attribute.id, new URL(externalUri)); + return; } let attributeBaseURI: string | undefined; @@ -137,6 +138,10 @@ export class AttributeConverterHandler extends ConverterHandler { TagNames.LocalName, attribute.name, ); + + if(!localName){ + throw new Error(`[AttributeConverterHandler]: Unable to determine local name for attribute (${attribute.path}). If you used a "name" tag, did you set it correctly?`) + } localName = toCamelCase(localName); const attributeURI: URL = new URL(`${attributeBaseURI}${localName}`);