mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Class::getCanonicalName may return null (#882)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This commit is contained in:
committed by
Kai Kreuzer
parent
bf9f86354b
commit
a75fbe1e42
+1
-1
@@ -168,7 +168,7 @@ public abstract class BaseThingHandlerFactory implements ThingHandlerFactory {
|
||||
// we only add specific ThingHandlerServices, i.e. those that derive from the
|
||||
// ThingHandlerService interface, NOT the ThingHandlerService itself. We do this to register
|
||||
// them as specific OSGi services later, rather than as a generic ThingHandlerService.
|
||||
if (!ThingHandlerService.class.getCanonicalName().equals(className)) {
|
||||
if (className != null && !className.equals(ThingHandlerService.class.getCanonicalName())) {
|
||||
serviceNames.add(className);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user