diff --git a/bundles/org.openhab.core.model.item/src/org/openhab/core/model/item/internal/GenericItemProvider.java b/bundles/org.openhab.core.model.item/src/org/openhab/core/model/item/internal/GenericItemProvider.java index 465394dd3e..c815e8e3f6 100644 --- a/bundles/org.openhab.core.model.item/src/org/openhab/core/model/item/internal/GenericItemProvider.java +++ b/bundles/org.openhab.core.model.item/src/org/openhab/core/model/item/internal/GenericItemProvider.java @@ -300,7 +300,8 @@ public class GenericItemProvider extends AbstractProvider if (model != null) { for (ModelItem modelItem : model.getItems()) { for (String itemType : itemTypes) { - if (itemType.equals(ItemUtil.getMainItemType(modelItem.getType()))) { + String type = modelItem.getType(); + if (type != null && itemType.equals(ItemUtil.getMainItemType(type))) { Item item = createItemFromModelItem(modelItem); if (item != null) { internalDispatchBindings(reader, modelName, item, modelItem.getBindings());