mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
Fix console command 'tables clean' (#13916)
NullPointerException was thrown because index table was not provided Fixes #13911 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
73b6e886f2
commit
a3fccc6390
@ -525,6 +525,7 @@ public class JdbcPersistenceService extends JdbcMapper implements ModifiablePers
|
|||||||
if (!conf.getTableUseRealCaseSensitiveItemNames()) {
|
if (!conf.getTableUseRealCaseSensitiveItemNames()) {
|
||||||
ItemsVO itemsVo = new ItemsVO();
|
ItemsVO itemsVo = new ItemsVO();
|
||||||
itemsVo.setItemName(entry.getItemName());
|
itemsVo.setItemName(entry.getItemName());
|
||||||
|
itemsVo.setItemsManageTable(conf.getItemsManageTable());
|
||||||
deleteItemsEntry(itemsVo);
|
deleteItemsEntry(itemsVo);
|
||||||
}
|
}
|
||||||
itemNameToTableNameMap.remove(entry.getItemName());
|
itemNameToTableNameMap.remove(entry.getItemName());
|
||||||
|
Loading…
Reference in New Issue
Block a user