Fix NPE in management test
This commit is contained in:
parent
5e2a405555
commit
ecc2cecf87
|
@ -94,6 +94,8 @@ public class CoreMessagingProxy
|
||||||
ClientMessage m = session.createMessage(false);
|
ClientMessage m = session.createMessage(false);
|
||||||
ManagementHelper.putOperationInvocation(m, resourceName, operationName, args);
|
ManagementHelper.putOperationInvocation(m, resourceName, operationName, args);
|
||||||
ClientMessage reply = requestor.request(m);
|
ClientMessage reply = requestor.request(m);
|
||||||
|
if (reply != null)
|
||||||
|
{
|
||||||
if (ManagementHelper.hasOperationSucceeded(reply))
|
if (ManagementHelper.hasOperationSucceeded(reply))
|
||||||
{
|
{
|
||||||
return ManagementHelper.getResult(reply);
|
return ManagementHelper.getResult(reply);
|
||||||
|
@ -103,6 +105,11 @@ public class CoreMessagingProxy
|
||||||
throw new Exception((String) ManagementHelper.getResult(reply));
|
throw new Exception((String) ManagementHelper.getResult(reply));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Private -------------------------------------------------------
|
// Private -------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue