diff --git a/src-electron/generator/matter/controller/java/templates/helper.js b/src-electron/generator/matter/controller/java/templates/helper.js index 66c2fed741..586c3e429f 100644 --- a/src-electron/generator/matter/controller/java/templates/helper.js +++ b/src-electron/generator/matter/controller/java/templates/helper.js @@ -28,6 +28,7 @@ const zclUtil = require(zapPath + 'util/zcl-util.js'); const characterStringTypes = ['CHAR_STRING', 'LONG_CHAR_STRING']; const octetStringTypes = ['OCTET_STRING', 'LONG_OCTET_STRING']; +const basicAttributeExceptionList = ['vendor_id']; function convertBasicCTypeToJavaType(cType) { switch (cType) { @@ -443,7 +444,12 @@ function incrementDepth(depth) { */ async function if_basic_attribute(type, clusterId, options) { let struct = null; - if (this.isNullable || this.isOptional || this.isArray) { + if ( + this.isNullable || + this.isOptional || + this.isArray || + basicAttributeExceptionList.includes(type) + ) { return options.inverse(this); } else { let packageIds = await templateUtil.ensureZclPackageIds(this);