Skip to content

Commit

Permalink
fixup: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gireeshpunathil authored and vik-chand committed Apr 11, 2023
1 parent 374cbf5 commit 2e76150
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2005, 2015 IBM Corporation and others.
* Copyright (c) 2005, 2023 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -72,7 +72,7 @@ public void setElements(Object[] elements) {
protected void updateOkState() {
super.updateOkState();
Button ok = getOkButton();
if (ok != null && !ok.isEnabled()) {
if (ok != null && !ok.isEnabled() && fElements != null) {
ok.setEnabled(fElements.length != 0);
}
}
Expand Down

0 comments on commit 2e76150

Please sign in to comment.