camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-11264) Potential NPE in DefaultUndertowHttpBinding
Date Mon, 15 May 2017 06:39:04 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrea Cosentino resolved CAMEL-11264.
--------------------------------------
    Resolution: Fixed

> Potential NPE in DefaultUndertowHttpBinding
> -------------------------------------------
>
>                 Key: CAMEL-11264
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11264
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-undertow
>    Affects Versions: 2.18.0, 2.18.1, 2.18.2, 2.18.3, 2.19.0
>            Reporter: James Netherton
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 2.18.4, 2.19.1, 2.20.0
>
>
> There's a potential NPE lurking in {{DefaultUndertowHttpBinding}}. We have this logic:
> {code:java}
> // we failed due to an exception so print it as plain text
> StringWriter sw = new StringWriter();
> PrintWriter pw = new PrintWriter(sw);
> exception.getCause().printStackTrace(pw);
> {code}
> Unfortuantely, {{exception.getCause()}} is not always guaranteed to be present and may
be {{null}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message