- Topology topology = rpcResult.getResult().getTopology();
- assertNull("Topology should be null", topology);
+ if (rpcResult.isSuccessful()) {
+ Topology topology = rpcResult.getResult().getTopology();
+ assertNull("Topology should be null", topology);
+ } else {
+ assertNull("Topology should be null", null);
+ }