jgallery
  1. jgallery
  2. JGALLERY-5

Folder.getLastPage() throws ArrayIndexOutOfBoundsException

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      5

      Description

      Folder.getLastPage() throws ArrayIndexOutOfBundsException, there is no page at
      imageFiles.length+1

      public String getLastPage() {
      return getSlidePage(imageFiles.length + 1);
      }

      should be:

      public String getLastPage() {
      return getSlidePage(imageFiles.length);
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jgallery-issues
            Reporter:
            pgleghorn
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: