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

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


The following commit(s) were added to refs/heads/master by this push:
     new fa6ca39  Do not tear down debugger UI in a headless mode.
     new 4d8bcca  Merge pull request #2428 from 
entlicher/Debugger_HeadlessFriendly
fa6ca39 is described below

commit fa6ca3959d49584908e062b60a6994448d81e184
Author: Martin Entlicher <[email protected]>
AuthorDate: Thu Oct 8 16:32:07 2020 +0200

    Do not tear down debugger UI in a headless mode.
---
 .../src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
 
b/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
index b62c459..8897e96 100644
--- 
a/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
+++ 
b/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
@@ -395,6 +395,9 @@ public class DebuggerManagerListener extends 
DebuggerManagerAdapter {
 
     @Override
     public void engineRemoved (final DebuggerEngine engine) {
+        if (GraphicsEnvironment.isHeadless()) {
+            return ;
+        }
         DebuggerModule dm = DebuggerModule.findObject(DebuggerModule.class);
         if (dm != null && dm.isClosing()) {
             // Do not interfere with closeDebuggerUI()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to