You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Martin Cassidy (JIRA)" <ji...@apache.org> on 2019/01/25 14:55:00 UTC

[jira] [Created] (CXF-7954) ReaderInterceptorMBR throws NullPointerException for a fault message

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)