Skip to content

Commit 952177e

Browse files
committed
TIKA-4583: Call init() on ConfigStore in AbstractComponentManager
- Added init() call in AbstractComponentManager constructor - Ensures ConfigStore is properly initialized before use - Wraps initialization exception in RuntimeException for clarity
1 parent 83d23ea commit 952177e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/AbstractComponentManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ protected AbstractComponentManager(PluginManager pluginManager,
6868
ConfigStore configStore) {
6969
this.pluginManager = pluginManager;
7070
this.configStore = configStore;
71+
try {
72+
configStore.init();
73+
} catch (Exception e) {
74+
throw new RuntimeException("Failed to initialize ConfigStore", e);
75+
}
7176
componentConfigs.forEach(configStore::put);
7277
this.allowRuntimeModifications = allowRuntimeModifications;
7378
}

0 commit comments

Comments
 (0)