From e705131dea1668f04cbfa2ef6c936a49b90cdc98 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 5 Jul 2020 23:21:46 -0400 Subject: [PATCH] v16.6-a5 fix issue reported by @SaurabhBhaiyaji --- app/src/main/java/awais/instagrabber/utils/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/utils/Utils.java b/app/src/main/java/awais/instagrabber/utils/Utils.java index 3fa5a87c..0d6adbf2 100755 --- a/app/src/main/java/awais/instagrabber/utils/Utils.java +++ b/app/src/main/java/awais/instagrabber/utils/Utils.java @@ -215,7 +215,7 @@ public final class Utils { if (++i == commentLength) break; currChar = text.charAt(i); - if (currChar == '.') { + if (currChar == '.' && i + 1 < commentLength) { final char nextChar = text.charAt(i + 1); if (nextChar == '.' || nextChar == ' ' || nextChar == '#' || nextChar == '@' || nextChar == '/' || nextChar == '\r' || nextChar == '\n') {