Fix an NPE with the confirmation for #3, oversight on my part.

This commit is contained in:
graywolf336 2014-02-14 21:42:27 -06:00
parent 52456edc6b
commit e148e1e2dd

View File

@ -535,9 +535,12 @@ public class JailManager {
/** Checks if the given name is confirming something. */ /** Checks if the given name is confirming something. */
public boolean isConfirming(String name) { public boolean isConfirming(String name) {
if(this.confirms.containsKey(name)) {
if(this.confirmingHasExpired(name)) this.removeConfirming(name); if(this.confirmingHasExpired(name)) this.removeConfirming(name);
return this.confirms.containsKey(name); return this.confirms.containsKey(name);
}else {
return false;
}
} }
/** Returns true if the confirmation has expired, false if it is still valid. */ /** Returns true if the confirmation has expired, false if it is still valid. */