ARTEMIS-1176 Fixing reading from JMS Messages as core messages

This commit is contained in:
Clebert Suconic 2017-05-24 18:37:46 -04:00
parent 298e60a1d4
commit 15bb4d2c61
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public final class ManagementHelper {
* and the result will be a String corresponding to the server exception. * and the result will be a String corresponding to the server exception.
*/ */
public static Object[] getResults(final ICoreMessage message) throws Exception { public static Object[] getResults(final ICoreMessage message) throws Exception {
SimpleString sstring = message.getBodyBuffer().readNullableSimpleString(); SimpleString sstring = message.getReadOnlyBodyBuffer().readNullableSimpleString();
String jsonString = (sstring == null) ? null : sstring.toString(); String jsonString = (sstring == null) ? null : sstring.toString();
if (jsonString != null) { if (jsonString != null) {