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

[jira] [Updated] (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 ]

Martin Styk updated ARTEMIS-653:
--------------------------------
    External issue URL: https://issues.jboss.org/browse/JBEAP-5402
     External issue ID: JBEAP-5402

> 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
>
> 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)