From 13e00bfa7bb87d785ca9ef07262bab2eae669483 Mon Sep 17 00:00:00 2001 From: YevhenBondarenko Date: Thu, 30 May 2024 18:17:23 +0200 Subject: [PATCH] fixed device profile proto deserialization --- .../java/org/thingsboard/server/common/util/ProtoUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java b/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java index e89ce5634c..16bd2ff896 100644 --- a/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java +++ b/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java @@ -658,6 +658,8 @@ public class ProtoUtils { } if (proto.hasDefaultRuleChainIdMSB() && proto.hasDefaultRuleChainIdLSB()) { deviceProfile.setDefaultRuleChainId(getEntityId(proto.getDefaultRuleChainIdMSB(), proto.getDefaultRuleChainIdLSB(), RuleChainId::new)); + } + if (proto.hasDefaultDashboardIdMSB() && proto.hasDefaultDashboardIdLSB()) { deviceProfile.setDefaultDashboardId(getEntityId(proto.getDefaultDashboardIdMSB(), proto.getDefaultDashboardIdLSB(), DashboardId::new)); } if (proto.hasDefaultQueueName()) {