```java
if (request.getClient() == null) {
    onError(new InvalidStateException("Request does not have a Client"))
    return;
}
```