ARTEMIS-4041 Fixing NPE on SequentialFileFactory after the CriticalIO change

This commit is contained in:
Clebert Suconic 2022-10-12 17:03:10 -04:00
parent 49d33470f9
commit 7b2f7e1707
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public interface SequentialFileFactory {
void onIOError(Throwable exception, String message, String file);
default void onIOError(Throwable exception, String message, SequentialFile file) {
onIOError(exception, message, file.getFileName());
onIOError(exception, message, file != null ? file.getFileName() : (String) null);
}
default void onIOError(Throwable exception, String message) {

View File

@ -457,7 +457,7 @@ public abstract class AbstractJournalStorageManager extends CriticalComponentImp
private void messageUpdateCallback(long id, boolean found) {
if (!found) {
ActiveMQServerLogger.LOGGER.cannotFindMessageOnJournal(id, new Exception());
ActiveMQServerLogger.LOGGER.cannotFindMessageOnJournal(id, new Exception("trace"));
}
}