Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fixes #783 Suggestion widget crash (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and MortimerGoro committed Nov 22, 2018
1 parent b4fd780 commit ff588a2
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,16 @@ else if (aURL.startsWith("data:") && SessionStore.get().isCurrentSessionPrivate(
}

public String getText() {
return mURL.getText().toString();
return mURL.getNonAutocompleteText();
}

public String getOriginalText() {
return mURL.getOriginalText();
try {
return mURL.getOriginalText();

} catch (IndexOutOfBoundsException e) {
return mURL.getNonAutocompleteText();
}
}

public void setIsInsecure(boolean aIsInsecure) {
Expand Down

0 comments on commit ff588a2

Please sign in to comment.