diff --git a/app/src/main/java/org/fdroid/fdroid/localrepo/LocalRepoManager.java b/app/src/main/java/org/fdroid/fdroid/localrepo/LocalRepoManager.java index f7b05fe70..6c0071054 100644 --- a/app/src/main/java/org/fdroid/fdroid/localrepo/LocalRepoManager.java +++ b/app/src/main/java/org/fdroid/fdroid/localrepo/LocalRepoManager.java @@ -357,9 +357,12 @@ public final class LocalRepoManager { /** * Helper function to start a tag called "name", fill it with text "text", and then - * end the tag in a more concise manner. + * end the tag in a more concise manner. If "text" is blank, skip the tag entirely. */ private void tag(String name, String text) throws IOException { + if (TextUtils.isEmpty(text)) { + return; + } serializer.startTag("", name).text(text).endTag("", name); }