Commit d838f2a86782256665e2b61dfbd1e5dc300422db
Committed by
Andrew Shvayka
1 parent
c7b57ca5
fix NPE in DefaultTbDeviceProfileCache
Showing
1 changed file
with
2 additions
and
0 deletions
... | ... | @@ -74,6 +74,8 @@ public class DefaultTbDeviceProfileCache implements TbDeviceProfileCache { |
74 | 74 | if (device != null) { |
75 | 75 | profileId = device.getDeviceProfileId(); |
76 | 76 | devicesMap.put(deviceId, profileId); |
77 | + } else { | |
78 | + return null; | |
77 | 79 | } |
78 | 80 | } |
79 | 81 | return get(tenantId, profileId); | ... | ... |