bugfix for npe

This commit is contained in:
yakolee
2014-06-19 14:21:13 +08:00
parent 7c31153aef
commit d4a24c56e5
@@ -1725,7 +1725,12 @@ public class SQLEvalVisitorUtils {
}
if (a instanceof Integer || b instanceof Integer) {
return castToInteger(a).equals(castToInteger(b));
Integer inta = castToInteger(a);
Integer intb = castToInteger(b);
if (inta == null || intb == null) {
return false;
}
return inta.equals(intb);
}
if (a instanceof Short || b instanceof Short) {