You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2019/04/09 12:24:51 UTC

[incubator-netbeans] branch master updated: [NETBEANS-2185] Preventing NPE on close.

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

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 37663fd  [NETBEANS-2185] Preventing NPE on close.
37663fd is described below

commit 37663fd3479a7e9afa41b8abd2ced67db37f32c2
Author: Jan Lahoda <jl...@netbeans.org>
AuthorDate: Sat Apr 6 16:07:00 2019 +0200

    [NETBEANS-2185] Preventing NPE on close.
---
 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 110eefb..5889b9b 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
@@ -239,7 +239,7 @@ public class LSPBindings {
         public void run() {
             for (Map<String, LSPBindings> mime2Bindings : project2MimeType2Server.values()) {
                 for (LSPBindings b : mime2Bindings.values()) {
-                    if (b != null) {
+                    if (b != null && b.process != null) {
                         b.process.destroy();
                     }
                 }


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

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