Skip to content

Commit

Permalink
ISSUE-2340 Adding null check to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
saikiran939 committed Jul 5, 2018
1 parent 26c6a7a commit 2c7f081
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -126,7 +126,7 @@ public void endAsyncContext(AtmosphereRequest request){
} catch (Exception e) {
logger.warn("Exception occurred in getting attribute from request object", e);
}
if (attribute instanceof AsyncContext) {
if (attribute != null && attribute instanceof AsyncContext) {
AsyncContext asyncContext = (AsyncContext) attribute;
if (asyncContext != null) {
try {
Expand Down

0 comments on commit 2c7f081

Please sign in to comment.