Description
The method AbstractLoggingInterceptor#getMessageLogger(Message) that was introduced by CXF-3888 assumes that message.getExchange().getEndpoint() is not null.
This assumption does not work if one uses org.apache.cxf.transport.MultipleEndpointObserver as the message observer, leading to NPE:
java.lang.NullPointerException: null at org.apache.cxf.interceptor.AbstractLoggingInterceptor.getMessageLogger(AbstractLoggingInterceptor.java:78) ~[cxf-2.5.9.jar:2.5.9] at org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(LoggingInInterceptor.java:73) ~[cxf-2.5.9.jar:2.5.9] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) ~[cxf-2.5.9.jar:2.5.9] at org.apache.cxf.transport.MultipleEndpointObserver.onMessage(MultipleEndpointObserver.java:98) [cxf-2.5.9.jar:2.5.9] ...
Would it be possible to check first if endpoint is present?