From bf0e1ad19b5b858d8c78af65ce6c56a2b0fecab9 Mon Sep 17 00:00:00 2001 From: Lukas Panhorst Date: Thu, 8 Aug 2024 22:54:28 +0200 Subject: [PATCH] wip --- .../java/org/openbase/bco/registry/lib/util/LocationUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/registry/lib/src/main/java/org/openbase/bco/registry/lib/util/LocationUtils.kt b/module/registry/lib/src/main/java/org/openbase/bco/registry/lib/util/LocationUtils.kt index 37050e2f4d..d65878c1aa 100644 --- a/module/registry/lib/src/main/java/org/openbase/bco/registry/lib/util/LocationUtils.kt +++ b/module/registry/lib/src/main/java/org/openbase/bco/registry/lib/util/LocationUtils.kt @@ -3,6 +3,7 @@ package org.openbase.bco.registry.lib.util import org.openbase.jul.exception.CouldNotPerformException import org.openbase.jul.exception.InvalidStateException import org.openbase.jul.exception.NotAvailableException +import org.openbase.jul.extension.protobuf.IdentifiableMessage import org.openbase.jul.extension.protobuf.container.ProtoBufMessageMap import org.openbase.jul.storage.registry.ConsistencyHandler import org.openbase.jul.storage.registry.EntryModification @@ -28,7 +29,7 @@ object LocationUtils { var modified = false // detect root location val detectedRootLocationConfigEntry = entryMap[newRootLocation.id] - val detectedRootLocationConfigBuilder = detectedRootLocationConfigEntry.message.toBuilder() + val detectedRootLocationConfigBuilder = detectedRootLocationConfigEntry!!.message!!.toBuilder() // verify if root flag is set. if (!detectedRootLocationConfigBuilder.locationConfig.hasRoot() || !detectedRootLocationConfigBuilder.locationConfig.root) {