]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/Notary.java
Prohibit negative points in Bussiness-Logic
[gigi.git] / src / org / cacert / gigi / util / Notary.java
index 657264a6e7c90b8dbf589aee579c0136373e6f49..f7327eb9b3e1a1fce672354888d196e8d1aee62d 100644 (file)
@@ -72,7 +72,7 @@ public class Notary {
                        return false;
                }
                System.out.println("Would now assure.");
-               if (awarded > assurer.getMaxAssurePoints()) {
+               if (awarded > assurer.getMaxAssurePoints() || awarded < 0) {
                        return false;
                }