Fix bug in confirmation util
This commit is contained in:
1 parent
5fe9d05e1b
commit
5302f808d7
1 file changed
+2
-2
@@ -103,9 +103,9 @@ public class ConfirmationUtil
|
||||
|
||||
boolean hasConfirmationString = hasConfirmationString(object, sender);
|
||||
boolean hasTypedConfirmationString = object.argIsSet(idx);
|
||||
boolean hasTypedOther = object.argIsSet(idx-1);
|
||||
boolean hasTypedOther = idx == 0 || object.argIsSet(idx-1);
|
||||
|
||||
// Assetion should not happen
|
||||
// Assertion should not happen
|
||||
if (hasTypedConfirmationString && !hasTypedOther) throw new RuntimeException();
|
||||
|
||||
if (!hasTypedOther)
|
||||
|
||||
Reference in new issue
Block a user