Commit d838f2a86782256665e2b61dfbd1e5dc300422db

Authored by YevhenBondarenko
Committed by Andrew Shvayka
1 parent c7b57ca5

fix NPE in DefaultTbDeviceProfileCache

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