gae.mergeInto(new GigiApiException("The points entered were not a number."));
}
}
- HashSet<String> data = new HashSet<>(Arrays.asList(req.getParameterValues("assuredName")));
+ String[] parameterValues = req.getParameterValues("assuredName");
+ HashSet<String> data = new HashSet<>(Arrays.asList(parameterValues == null ? new String[0] : parameterValues));
for (int i = 0; i < assureeNames.length; i++) {
selected[i] = data.contains(Integer.toString(assureeNames[i].getId()));
}
toAssure.add(assureeNames[i]);
}
}
+ if (toAssure.size() == 0) {
+ throw new GigiApiException("You must confirm at least one name to verify an account.");
+ }
Notary.assureAll(assurer, assuree, dob, pointsI, location, req.getParameter("date"), type, toAssure.toArray(new Name[toAssure.size()]));