You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2021/03/21 17:30:58 UTC

[netbeans] branch master updated: Fix show 'Visual Debugging' options

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

matthiasblaesing 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 853b3ac  Fix show 'Visual Debugging' options
     new 921f707  Merge pull request #2821 from philippefichet/master
853b3ac is described below

commit 853b3aceae1a1b34fecc6218dbc85f64b61fdb01
Author: FICHET Philippe <ph...@laposte.net>
AuthorDate: Sat Mar 20 23:07:33 2021 +0100

    Fix show 'Visual Debugging' options
---
 .../netbeans/modules/debugger/jpda/ui/options/JavaDebuggerPanel.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/options/JavaDebuggerPanel.java b/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/options/JavaDebuggerPanel.java
index 9e76841..9728464 100644
--- a/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/options/JavaDebuggerPanel.java
+++ b/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/options/JavaDebuggerPanel.java
@@ -138,7 +138,7 @@ final class JavaDebuggerPanel extends StorablePanel {
 
     private void categoriesListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_categoriesListValueChanged
         int c = categoriesList.getSelectedIndex();
-        if (c >= 0 && c <= 3) {
+        if (c >= 0 && c < categoryPanels.length) {
             selectCategory(c);
         }
 }//GEN-LAST:event_categoriesListValueChanged

---------------------------------------------------------------------
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