You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "WB (JIRA)" <ji...@apache.org> on 2008/05/15 10:13:55 UTC

[jira] Created: (CXF-1588) NullPointerException in JbiConduitOutputStream

NullPointerException in JbiConduitOutputStream
----------------------------------------------

                 Key: CXF-1588
                 URL: https://issues.apache.org/jira/browse/CXF-1588
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.1.1
            Reporter: WB
            Priority: Critical


When MessageExchange contains no fault but error this code causes NPE:

NormalizedMessage outMsg = ((InOut)xchng).getOutMessage();
Source content = null;
if (outMsg != null) {
        content = outMsg.getContent();
} else {
        content = ((InOut)xchng).getFault().getContent();
}

There should be some checking for error if there is no fault present.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-1588) NullPointerException in JbiConduitOutputStream

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned CXF-1588:
---------------------------------

    Assignee: Freeman Fang

> NullPointerException in JbiConduitOutputStream
> ----------------------------------------------
>
>                 Key: CXF-1588
>                 URL: https://issues.apache.org/jira/browse/CXF-1588
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1.1
>            Reporter: WB
>            Assignee: Freeman Fang
>            Priority: Critical
>
> When MessageExchange contains no fault but error this code causes NPE:
> NormalizedMessage outMsg = ((InOut)xchng).getOutMessage();
> Source content = null;
> if (outMsg != null) {
>         content = outMsg.getContent();
> } else {
>         content = ((InOut)xchng).getFault().getContent();
> }
> There should be some checking for error if there is no fault present.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1588) NullPointerException in JbiConduitOutputStream

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-1588.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.7
                   2.1.1

> NullPointerException in JbiConduitOutputStream
> ----------------------------------------------
>
>                 Key: CXF-1588
>                 URL: https://issues.apache.org/jira/browse/CXF-1588
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1.1
>            Reporter: WB
>            Assignee: Freeman Fang
>            Priority: Critical
>             Fix For: 2.1.1, 2.0.7
>
>
> When MessageExchange contains no fault but error this code causes NPE:
> NormalizedMessage outMsg = ((InOut)xchng).getOutMessage();
> Source content = null;
> if (outMsg != null) {
>         content = outMsg.getContent();
> } else {
>         content = ((InOut)xchng).getFault().getContent();
> }
> There should be some checking for error if there is no fault present.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.