File tree Expand file tree Collapse file tree
org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/presentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,11 +199,13 @@ public void display(final IStructuredSelection selection) {
199199 // Apply capability gating
200200 final var caps = getDebugAdapterCapabilities (); // is null if no debug session is active
201201
202- final boolean condSupported = caps == null || caps .getSupportsConditionalBreakpoints ();
202+ final boolean condSupported = caps == null
203+ || caps .getSupportsConditionalBreakpoints () != null && caps .getSupportsConditionalBreakpoints ();
203204 enableConditionButton .setEnabled (condSupported );
204205 conditionEditor .setEnabled (condSupported );
205206
206- final boolean hitSupported = caps == null || caps .getSupportsHitConditionalBreakpoints ();
207+ final boolean hitSupported = caps == null || caps .getSupportsHitConditionalBreakpoints () != null
208+ && caps .getSupportsHitConditionalBreakpoints ();
207209 enableHitConditionButton .setEnabled (hitSupported );
208210 hitConditionText .setEnabled (hitSupported );
209211 } else {
You can’t perform that action at this time.
0 commit comments