You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/12/15 08:02:00 UTC

[jira] [Work logged] (ARTEMIS-3607) JsonUtil addToObject should be able to add a JsonValue

     [ https://issues.apache.org/jira/browse/ARTEMIS-3607?focusedWorklogId=696431&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-696431 ]

ASF GitHub Bot logged work on ARTEMIS-3607:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Dec/21 08:01
            Start Date: 15/Dec/21 08:01
    Worklog Time Spent: 10m 
      Work Description: ehsavoie opened a new pull request #3883:
URL: https://github.com/apache/activemq-artemis/pull/3883


   JsonUtil.addToObject
   
   * When the added Object is of type JsonValue, don't call the toString
     method on it.
   
   Issue: https://issues.apache.org/jira/browse/ARTEMIS-3607


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 696431)
    Remaining Estimate: 0h
            Time Spent: 10m

> JsonUtil addToObject should be able to add a JsonValue
> ------------------------------------------------------
>
>                 Key: ARTEMIS-3607
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3607
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.19.0
>            Reporter: Emmanuel Hugonnet
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Adding a JsonObject to a JsonObject using JsonUtil.addToObject will have a NPE if the value is JsonValue.NULL (NullableJsonString). When adding a JsonObject (aka a Map of JsonValues) we should use the to String method but 'just' add the JsonValue



--
This message was sent by Atlassian Jira
(v8.20.1#820001)