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

Commit 505a55c3 authored by Andrew Grieve's avatar Andrew Grieve
Browse files

Avoid NPE in Html.toHtml() when <font> is missing a face attribute

See b/395473939

Change-Id: I02b4b3487211fbc032d874560b749d0f454c6b91
parent d891e96b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -614,7 +614,7 @@ public class Html {
                if (style[j] instanceof TypefaceSpan) {
                    String s = ((TypefaceSpan) style[j]).getFamily();

                    if (s.equals("monospace")) {
                    if ("monospace".equals(s)) {
                        out.append("</tt>");
                    }
                }