You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2016/07/25 19:25:20 UTC

[jira] [Closed] (ARTEMIS-653) Possible Null Pointer Exception during message properties read using XmlDataImporter

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

clebert suconic closed ARTEMIS-653.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

> Possible Null Pointer Exception during message properties read using XmlDataImporter
> ------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-653
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-653
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Martin Styk
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> There is possible NPE in XMLDataImporter#processMessageProperties
> {code}
> realValue = null;
> {code}
> {code}
>  case XmlDataConstants.PROPERTY_TYPE_SIMPLE_STRING:
>             if (!value.equals(XmlDataConstants.NULL)) {
>                realValue = value;
>             }
>             message.putStringProperty(new SimpleString(key), new SimpleString(realValue));
>             break;
> {code}
> If realValue is null, new SimpleString(realValue) throws NPE



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)