Skip to content

Commit

Permalink
Merge pull request #735 from Syer10/patch-2
Browse files Browse the repository at this point in the history
String is blank crash
  • Loading branch information
Alex009 authored Jun 20, 2024
2 parents d0f30dd + 63ae19b commit 1caa8e7
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 1caa8e7

Please sign in to comment.