fix error in index caught by thadguidry

This commit is contained in:
Jesus M. Castagnetto 2013-06-19 11:21:26 -05:00
parent 02e8b28d26
commit b09bb4463e

View File

@ -41,7 +41,7 @@ public class Xor implements Function {
public Object call(Properties bindings, Object[] args) { public Object call(Properties bindings, Object[] args) {
if (args.length == 2 && if (args.length == 2 &&
args[0] != null && args[0] instanceof Boolean && args[0] != null && args[0] instanceof Boolean &&
args[1] != null && args[0] instanceof Boolean) { args[1] != null && args[1] instanceof Boolean) {
boolean o1 = ((Boolean) args[0]).booleanValue(); boolean o1 = ((Boolean) args[0]).booleanValue();
boolean o2 = ((Boolean) args[1]).booleanValue(); boolean o2 = ((Boolean) args[1]).booleanValue();
return o1 != o2; return o1 != o2;