Skip to content

Commit

Permalink
If not set explicitly assume async is not supported and avoid NPEx
Browse files Browse the repository at this point in the history
Fixes eclipse-ee4j/glassfish 22406
  • Loading branch information
pzygielo authored and dmatej committed Jan 9, 2020
1 parent 321e2d7 commit cce6338
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997-2020 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -114,7 +114,8 @@ public String getSmallIcon() {
}

public boolean isAsyncSupported() {
return decoree.isAsyncSupported();
Boolean decoreeAsyncFlag = decoree.isAsyncSupported();
return (decoreeAsyncFlag == null ? false : decoreeAsyncFlag);
}

}

0 comments on commit cce6338

Please sign in to comment.