Martin Cassidy created CXF-7954:
-----------------------------------

             Summary: ReaderInterceptorMBR throws NullPointerException for a 
fault message
                 Key: CXF-7954
                 URL: https://issues.apache.org/jira/browse/CXF-7954
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.2.7
            Reporter: Martin Cassidy


On the client side, if 1 or more ReaderInterceptors are registered, the 
ReaderInterceptorMBR will be appended to the ReaderInterceptor list onĀ 
org.apache.cxf.jaxrs.provider.ProviderFactory line 373, when it does so, it 
passes m.getExchange().getInMessage() in the constructor. If the response was 
an error, then getInMessage is null, as the inMessage is set to false, and the 
inFaultMessage is set to the message instead. Consiquently, when the 
ReaderInterceptorMBR gets called, it will throw a NullPointerException on line 
64, because m will be null.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to