EMS: Added null check in LogMessageUpdateInterceptor class to prevent NPE

This commit is contained in:
ipatini 2023-08-21 08:29:04 +03:00
parent 8e7bef13c5
commit 08aa28a218

View File

@ -27,7 +27,8 @@ public class LogMessageUpdateInterceptor extends AbstractMessageInterceptor {
public void initialized() {
this.eventRecorder = applicationContext.getBean(BrokerConfig.class).getEventRecorder();
log.debug("LogMessageUpdateInterceptor: Enabled: {}", eventRecorder!=null);
eventRecorder.startRecording();
if (eventRecorder!=null)
eventRecorder.startRecording();
}
@Override