mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 19:55:48 +01:00
Fixed provider comparison (#1792)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
35b0a1275e
commit
a598fa94f4
@ -541,7 +541,7 @@ public abstract class AbstractRegistry<@NonNull E extends Identifiable<K>, @NonN
|
||||
}
|
||||
|
||||
protected void unsetManagedProvider(ManagedProvider<E, K> provider) {
|
||||
if (managedProvider.equals(provider)) {
|
||||
if (managedProvider.isPresent() && managedProvider.get().equals(provider)) {
|
||||
managedProvider = Optional.empty();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user