[siemensrds] Hide already instantiated Things in the InBox (#9808)

* [siemensrds] null value check
* [siemensrds] representation property

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green 2021-01-13 20:09:41 +00:00 committed by GitHub
parent 41f8ae6acc
commit 18d06bbb8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,7 @@ public class RdsDataPoints {
@Nullable
RdsDataPoints newPoints = GSON.fromJson(json, RdsDataPoints.class);
Map<String, @Nullable BasePoint> newPointsMap = newPoints.points;
Map<String, @Nullable BasePoint> newPointsMap = newPoints != null ? newPoints.points : null;
if (newPointsMap == null) {
throw new RdsCloudException("new points map empty");

View File

@ -113,6 +113,7 @@
<property name="vendor">Siemens</property>
<property name="modelId">RDS</property>
</properties>
<representation-property>plantId</representation-property>
<config-description>
<parameter name="plantId" type="text" required="true">