search NullPoiner
This commit is contained in:
parent
ada56e9f18
commit
4ec71554a0
@ -221,7 +221,12 @@ public class DomainTest {
|
|||||||
try {
|
try {
|
||||||
Object execute = client.execute(MODULE + ".search", params);
|
Object execute = client.execute(MODULE + ".search", params);
|
||||||
Object[] result = (Object[]) execute;
|
Object[] result = (Object[]) execute;
|
||||||
count = ((List<?>)((Map<String, ?>) result[0]).get("domainsoptions")).size();
|
assertEquals(result.length, 1);
|
||||||
|
Map<String, ?> domainMap = (Map<String, ?>) result[0];
|
||||||
|
assertNotNull(domainMap);
|
||||||
|
List<?> optsList = (List<?>)domainMap.get("domainsoptions");
|
||||||
|
assertNotNull(optsList);
|
||||||
|
count = optsList.size();
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user