[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:
parent
41f8ae6acc
commit
18d06bbb8a
|
@ -299,7 +299,7 @@ public class RdsDataPoints {
|
||||||
@Nullable
|
@Nullable
|
||||||
RdsDataPoints newPoints = GSON.fromJson(json, RdsDataPoints.class);
|
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) {
|
if (newPointsMap == null) {
|
||||||
throw new RdsCloudException("new points map empty");
|
throw new RdsCloudException("new points map empty");
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
<property name="vendor">Siemens</property>
|
<property name="vendor">Siemens</property>
|
||||||
<property name="modelId">RDS</property>
|
<property name="modelId">RDS</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
<representation-property>plantId</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="plantId" type="text" required="true">
|
<parameter name="plantId" type="text" required="true">
|
||||||
|
|
Loading…
Reference in New Issue