Also protect against a potential NPE in
IndexedRelationsSearcherBase.initializeIndexImpl.
refs #7553
Change-Id: I516eecfa758b532b824693e9c6a2449a18a65a69
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r, "Lucene Index Creator");
- if (t.isDaemon())
+ if (!t.isDaemon())
t.setDaemon(true);
if (t.getPriority() != Thread.NORM_PRIORITY)
t.setPriority(Thread.NORM_PRIORITY);
try {
closeWriter(writer.getAndSet(null));
} finally {
- directory.getAndSet(null).close();
+ FileUtils.uncheckedClose(directory.getAndSet(null));
}
}
}