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

Justin Bertram reassigned ARTEMIS-3861:
---------------------------------------

    Assignee:     (was: Justin Bertram)

> Java 8 Mitigate NPE when browsing messages
> ------------------------------------------
>
>                 Key: ARTEMIS-3861
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3861
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.19.0, 2.19.1
>            Reporter: Phil Haeusler
>            Priority: Major
>
> This fix for JsonUtil.java from ARTEMIS-3677 is needed for the v2.19.x series 
> to allow browsing of messages in Java 8 environments
>  
> {code:java}
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.activemq.artemis.api.core.JsonUtil.truncate(JsonUtil.java:331) 
> ~[?:?]
>         at 
> org.apache.activemq.artemis.api.core.Message.toPropertyMap(Message.java:763) 
> ~[?:?]
>         at 
> org.apache.activemq.artemis.api.core.ICoreMessage.toMap(ICoreMessage.java:114)
>  ~[?:?]
>         at 
> org.apache.activemq.artemis.core.management.impl.QueueControlImpl.getFirstMessage(QueueControlImpl.java:907)
>  ~[?:?]
>         at 
> org.apache.activemq.artemis.core.management.impl.QueueControlImpl.getFirstMessageAsJSON(QueueControlImpl.java:922)
>  ~[?:?] {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to