@@ -184,6 +184,12 @@ namespace ComPDFKit.Tool
}
+ if (currentSelectionIndex < 0 || (editTextFindSelectionList!=null && currentSelectionIndex >= editTextFindSelectionList.Count))
+ {
+ isOtherPage = false;
+ canLoop = true;
+ return false;
+ }
editTextFindSelection = editTextFindSelectionList[currentSelectionIndex];
GoToFoundDestination(editTextFindSelection);
isOtherPage = false;