This is an automated email from the ASF dual-hosted git repository.

geertjan pushed a commit to branch delivery
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/delivery by this push:
     new f39feea  Preventing a NPE in LSPBindings, description.bindings can be 
null.
     new 39c16b6  Merge pull request #2911 from 
jlahoda/lspbinding-npe-fix-apr-2021
f39feea is described below

commit f39feeaa5fdcd787b6b7916f95c870837943a30b
Author: Jan Lahoda <jlah...@netbeans.org>
AuthorDate: Thu Apr 22 07:00:25 2021 +0200

    Preventing a NPE in LSPBindings, description.bindings can be null.
---
 ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java 
b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
index 06ce534..b7577ed 100644
--- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
+++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
@@ -366,7 +366,7 @@ public class LSPBindings {
         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()

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to