Browse Source

fix NPE in DefaultTbDeviceProfileCache

pull/3570/head
YevhenBondarenko 6 years ago
committed by Andrew Shvayka
parent
commit
d838f2a867
  1. 2
      application/src/main/java/org/thingsboard/server/service/profile/DefaultTbDeviceProfileCache.java

2
application/src/main/java/org/thingsboard/server/service/profile/DefaultTbDeviceProfileCache.java

@ -74,6 +74,8 @@ public class DefaultTbDeviceProfileCache implements TbDeviceProfileCache {
if (device != null) {
profileId = device.getDeviceProfileId();
devicesMap.put(deviceId, profileId);
} else {
return null;
}
}
return get(tenantId, profileId);

Loading…
Cancel
Save