public static boolean areBothNull(Object object1, Object object2) {
    return object1 == null && object2 == null;
  }
Checks whether both the given objects are null.

@param object1 Object 1
@param object2 Object 2

@return true if both the provided objects are null.
KITE-Framework/src/main/java/org/webrtc/kite/Utils.java