Skip to content

Commit

Permalink
fix possible NPE in CommandProvider.getElements during shutdown eclip…
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Apr 4, 2024
1 parent 30af691 commit 41e1e3f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public QuickAccessElement findElement(String id, String filterText) {
public QuickAccessElement[] getElements() {
if (!allCommandsRetrieved) {
ICommandService commandService = getCommandService();
if (commandService == null) {
return null;
}
Collection<String> commandIds = commandService.getDefinedCommandIds();
for (String commandId : commandIds) {
retrieveCommand(commandId);
Expand Down

0 comments on commit 41e1e3f

Please sign in to comment.