Fix NPE in management test

This commit is contained in:
jbertram 2015-07-30 10:35:20 -05:00 committed by Clebert Suconic
parent 5e2a405555
commit ecc2cecf87
1 changed files with 10 additions and 3 deletions

View File

@ -94,6 +94,8 @@ public class CoreMessagingProxy
ClientMessage m = session.createMessage(false);
ManagementHelper.putOperationInvocation(m, resourceName, operationName, args);
ClientMessage reply = requestor.request(m);
if (reply != null)
{
if (ManagementHelper.hasOperationSucceeded(reply))
{
return ManagementHelper.getResult(reply);
@ -103,6 +105,11 @@ public class CoreMessagingProxy
throw new Exception((String) ManagementHelper.getResult(reply));
}
}
else
{
return null;
}
}
// Private -------------------------------------------------------