Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added comment on broken logic

Rich Turnerab4ba0919606
diff --git a/manager/server/src/main/java/org/openremote/manager/server/asset/AssetProcessingService.java b/manager/server/src/main/java/org/openremote/manager/server/asset/AssetProcessingService.java
index 86baadb1f..13e854137 100644
--- a/manager/server/src/main/java/org/openremote/manager/server/asset/AssetProcessingService.java
+++ b/manager/server/src/main/java/org/openremote/manager/server/asset/AssetProcessingService.java
@@ -180,6 +180,7 @@ public class AssetProcessingService extends RouteBuilder implements ContainerSer
assetStorageService.getAgentLinkResolver(), attributeEvent.getAttributeName()
);
+ // TODO: This is broken a thing should be able to have attributes not linked to a protocol
if (thingAttribute == null) {
throw new RuntimeException("Ignoring " + attributeEvent + ", thing attribute not available or linked to agent: " + asset);
}