Fix an NPE with the confirmation for #3, oversight on my part.
This commit is contained in:
		@@ -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. */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user