Index: tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/textsearcher/Searcher.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/textsearcher/Searcher.java	(revision 1694444)
+++ tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/ui/textsearcher/Searcher.java	(revision )
@@ -56,7 +56,7 @@
         @Override
         public void actionPerformed(ActionEvent actionEvent)
         {
-            if (totalMatch != 0)
+            if (totalMatch != 0 && currentMatch != 0)
             {
                 currentMatch = currentMatch - 1;
                 int offset = highlights.get(currentMatch).getStartOffset();
@@ -72,7 +72,7 @@
         @Override
         public void actionPerformed(ActionEvent actionEvent)
         {
-            if (totalMatch != 0)
+            if (totalMatch != 0 && currentMatch != totalMatch - 1)
             {
                 currentMatch = currentMatch + 1;
                 int offset = highlights.get(currentMatch).getStartOffset();
