mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bugfix for npe
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user