mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 11:45:49 +01:00
Fix NPE in PersistentInbox (#3215)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
e2bcdcc8f3
commit
5bb31074b5
@ -483,6 +483,8 @@ public final class PersistentInbox implements Inbox, DiscoveryListener, ThingReg
|
||||
resultImpl.setFlag((flag == null) ? DiscoveryResultFlag.NEW : flag);
|
||||
discoveryResultStorage.put(resultImpl.getThingUID().toString(), resultImpl);
|
||||
notifyListeners(resultImpl, EventType.UPDATED);
|
||||
} else if (result == null) {
|
||||
logger.warn("Cannot set flag for result '{}' because it can't be found in storage", thingUID);
|
||||
} else {
|
||||
logger.warn("Cannot set flag for result of instance type '{}'", result.getClass().getName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user