Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LukBelter committed Aug 8, 2024
1 parent 2659099 commit bf0e1ad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit bf0e1ad

Please sign in to comment.