Skip to content

Commit

Permalink
Merge pull request apache#2911 from jlahoda/lspbinding-npe-fix-apr-2021
Browse files Browse the repository at this point in the history
Preventing a NPE in LSPBindings, description.bindings can be null.
  • Loading branch information
geertjanw authored Apr 29, 2021
2 parents a61bd21 + f39feea commit 39c16b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public static synchronized Set<LSPBindings> getAllBindings() {
project2MimeType2Server.values()
.stream()
.flatMap(n -> n.values().stream())
.map(description -> description.bindings.get())
.map(description -> description.bindings != null ? description.bindings.get() : null)
.filter(binding -> binding != null)
.forEach(allBindings::add);
workspace2Extension2Server.values()
Expand Down

0 comments on commit 39c16b6

Please sign in to comment.