src/main/java/org/jinstagram/utils/Preconditions.java
public static void checkBothNotNull(Object object1, Object object2, String errorMsg) {
		check(!(object1 == null && object2 == null), errorMsg);
	}
public static void checkBothNotNull(Object object1, Object object2, String errorMsg) {
		check(!(object1 == null && object2 == null), errorMsg);
	}
Checks that at least one of object1 or object2 is not null

@param object1 any object
@param object2 any object
@param errorMsg error message
@throws IllegalArgumentException if both object1 and object2 are null