activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-653) Possible Null Pointer Exception during message properties read using XmlDataImporter
Date Mon, 25 Jul 2016 18:33:20 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392453#comment-15392453
] 

ASF GitHub Bot commented on ARTEMIS-653:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/activemq-artemis/pull/659


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

Mime
View raw message