Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af3e372c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix handling of null "standalone" value."

parents 39a3c2f6 956f2ac9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -367,8 +367,11 @@ public class FastXmlSerializer implements XmlSerializer {

    public void startDocument(String encoding, Boolean standalone) throws IOException,
            IllegalArgumentException, IllegalStateException {
        append("<?xml version='1.0' encoding='utf-8' standalone='"
                + (standalone ? "yes" : "no") + "' ?>\n");
        append("<?xml version='1.0' encoding='utf-8'");
        if (standalone != null) {
            append(" standalone='" + (standalone ? "yes" : "no") + "'");
        }
        append(" ?>\n");
        mLineStart = true;
    }