[hg] main-silver: #224647 - IndexOutOfBoundsException: Index: 6,...

  • From: Miloslav Metelka < >
  • To: ,
  • Subject: [hg] main-silver: #224647 - IndexOutOfBoundsException: Index: 6,...
  • Date: Wed, 23 Jan 2013 13:13:06 -0800

changeset c2fe0607f522 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c2fe0607f522
description:
        #224647 - IndexOutOfBoundsException: Index: 6, Size: 6.

diffstat:

 
editor.bookmarks/src/org/netbeans/modules/editor/bookmarks/ui/BookmarksView.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/editor.bookmarks/src/org/netbeans/modules/editor/bookmarks/ui/BookmarksView.java
 
b/editor.bookmarks/src/org/netbeans/modules/editor/bookmarks/ui/BookmarksView.java
--- 
a/editor.bookmarks/src/org/netbeans/modules/editor/bookmarks/ui/BookmarksView.java
+++ 
b/editor.bookmarks/src/org/netbeans/modules/editor/bookmarks/ui/BookmarksView.java
@@ -352,7 +352,7 @@
         if (tableView != null) {
             BookmarksTable table = tableView.getTable();
             BookmarksTableModel model = (BookmarksTableModel) 
table.getModel();
-            for (int i = model.getEntryCount(); i >= 0; i--) {
+            for (int i = model.getEntryCount() - 1; i >= 0; i--) {
                 if (evt.getChange(model.getEntry(i).getBookmarkInfo()) != 
null) {
                     model.fireTableRowsUpdated(i, i);
                 }

[hg] main-silver: #224647 - IndexOutOfBoundsException: Index: 6,...

Miloslav Metelka 01/23/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close