ARTEMIS-4041 Fixing NPE on SequentialFileFactory after the CriticalIO change
This commit is contained in:
parent
49d33470f9
commit
7b2f7e1707
|
@ -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) {
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue