Skip to content

Commit d85c8ee

Browse files
committed
In case of an OnTimout Event the throwable is null
1 parent c2d729c commit d85c8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/org/grails/plugins/rx/web/RxResultSubscriber.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class RxResultSubscriber implements AsyncListener, Observer {
251251
@Override
252252
void onError(Throwable e) {
253253
synchronized (asyncContext) {
254-
if(!asyncComplete && !asyncContext.response.isCommitted()) {
254+
if(!asyncComplete && !asyncContext.response.isCommitted() && e != null) {
255255
// if an error occurred and the response has not yet been commited try and handle it
256256
def httpServletResponse = (HttpServletResponse) asyncContext.response
257257
// first check if the exception resolver and resolve a model and view

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy