reta commented on a change in pull request #649: CXF-8235 Handle null
continuation in AsyncResponseImpl
URL: https://github.com/apache/cxf/pull/649#discussion_r390093975
##########
File path:
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
##########
@@ -302,6 +302,11 @@ public synchronized void handleTimeout() {
private void initContinuation() {
ContinuationProvider provider =
(ContinuationProvider)inMessage.get(ContinuationProvider.class.getName());
+ if (provider == null) {
+ throw new IllegalArgumentException(
Review comment:
Very minor, I would probably go with `IllegalStateException` (seems to fit
better to this particular issue) but `IllegalArgumentException` is also fine.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services