Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4938734

ensureRowsAreVisible must be called only with a valid index

XMLWordPrintable

    • b28
    • generic
    • generic



      Name: omR10226 Date: 10/16/2003

      In the method BasicTreeUI$Actions.moveSelectionToParent
      ensureRowsAreVisible must be called only if index != -1:
      --- 4181,4188 ----
                        int newIndex = ui.getRowForPath(tree, path.getParentPath());
                        if (newIndex != -1) {
                            tree.setSelectionInterval(newIndex, newIndex);
                            ui.ensureRowsAreVisible(newIndex, newIndex);
                        }
                    }
                }

      ======================================================================

            moasunw Moa Moa (Inactive)
            moasunw Moa Moa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: