public static boolean equals(Object a,Object b) {
        if (a == null) return b == null;
        return a.equals(b);
    }
Compares two objects which may be null
container-search/src/main/java/com/yahoo/search/query/QueryHelper.java