X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Futil%2FNotary.java;h=280bce39d4b45b50a9fea16a1f66405cf60ce349;hp=cba93aba8ee78f92a6b40b00252d8bc7c55eaf6b;hb=0dfe195d39328924a19f9301278eaba97f57c1b8;hpb=304c4527b30ac4f89a697787b96851d2f8e2f821 diff --git a/src/org/cacert/gigi/util/Notary.java b/src/org/cacert/gigi/util/Notary.java index cba93aba..280bce39 100644 --- a/src/org/cacert/gigi/util/Notary.java +++ b/src/org/cacert/gigi/util/Notary.java @@ -239,6 +239,9 @@ public class Notary { } public synchronized static void assureAll(User assurer, User assuree, DayDate dob, int awarded, String location, String date, AssuranceType type, Name[] toAssure) throws GigiApiException { + if (toAssure.length == 0) { + throw new GigiApiException("You must confirm at least one name to verify an account."); + } boolean[] hadLessThan50Points = new boolean[toAssure.length]; boolean hadTotalLessThan100 = assuree.getAssurancePoints() < 100; for (int i = 0; i < toAssure.length; i++) {