Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 authored Jun 19, 2024
1 parent d0f30dd commit 63ae19b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal fun String.convertXmlStringToAndroidLocalization(): String {
.replace("\n", "\\n")
.let { StringEscapeUtils.escapeXml11(it) }
.let {
if (it[0] == '@') {
if (it.getOrNull(0) == '@') {
replaceFirst("@", """\@""")
} else {
it
Expand Down

0 comments on commit 63ae19b

Please sign in to comment.