Skip to content

Commit 0cf44b9

Browse files
authored
Merge pull request #22 from oracle-devrel/fixdisplayname
Data cache now correctly returns the instance name
2 parents 5e6ae79 + 6179b7d commit 0cf44b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IoTDBJDBC/src/main/java/com/oracle/demo/timg/iot/iotdbjdbc/messagehandler/iotdbutils/DeviceModelInstancesCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ public String getInstanceDisplayNameByInstanceId(@NotNull @NotEmpty String insta
451451
}
452452
// do we already have the info ? note that empty string and null are valid
453453
// responses here.
454-
if (instanceIdToExternalKey.containsKey(instanceId)) {
454+
if (instanceIdToInstanceName.containsKey(instanceId)) {
455455
// we have the key, the model could be a string, null blank etc if one hasn't
456456
// been set, but that's still valid.
457-
return instanceIdToExternalKey.get(instanceId);
457+
return instanceIdToInstanceName.get(instanceId);
458458
}
459459
// we don't have a cached version
460460
// let's try and locate it

0 commit comments

Comments
 (0)