Skip to content

Commit

Permalink
Check for undefined meta info when zcl meta file is not present (proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
brdandu authored May 7, 2024
1 parent ed628b8 commit 84a5b13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src-electron/zcl/zcl-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ async function loadZclMetafiles(
if (Array.isArray(metadataFiles)) {
for (let f of metadataFiles) {
let metaInfo = await loadZclMetaFilesCommon(db, f, options)
categoryToPackageIdMap[metaInfo.category] = metaInfo.packageId
packageIds.push(metaInfo.packageId)
if (metaInfo.multiProtocolInfo) {
multiProtcolInfo.push(metaInfo)
if (metaInfo) {
categoryToPackageIdMap[metaInfo.category] = metaInfo.packageId
packageIds.push(metaInfo.packageId)
if (metaInfo.multiProtocolInfo) {
multiProtcolInfo.push(metaInfo)
}
}
}
} else {
Expand Down

0 comments on commit 84a5b13

Please sign in to comment.