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
…22871)

Fixes #22406

Signed-off-by: Piotrek Zygielo <[email protected]>
  • Loading branch information
pzygielo authored and bshannon committed Jan 28, 2020
1 parent 3a3bd86 commit 9b85582
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -90,7 +90,8 @@ public String getSmallIcon() {
}

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

}

0 comments on commit 9b85582

Please sign in to comment.