if (!isValidParams(idTokenHint) || postLogoutUrl == null || postLogoutUrl.isEmpty()) {
</BUG>
errorFactory.throwBadRequestException(EndSessionErrorResponseType.INVALID_REQUEST);
}
}
<BUG>public static void validateParams(String idTokenHint, ErrorResponseFactory errorFactory) {

if (!isValidParams(idTokenHint)) {
</BUG>
errorFactory.throwBadRequestException(EndSessionErrorResponseType.INVALID_REQUEST);

package org.xdi.oxauth.model.session;
import org.xdi.oxauth.model.error.ErrorResponseFactory;
import org.xdi.util.StringHelper;
public class EndSessionParamsValidator {
public static boolean isValidParams(String idTokenHint, String sessionState) {
return StringHelper.isNotEmpty(idTokenHint) || StringHelper.isNotEmpty(sessionState);
