Merge "Fix NPE in Html.inParagraph()" into mnc-dev

This commit is contained in:
Raph Levien
2015-05-05 17:43:27 +00:00
committed by Android (Google) Code Review

View File

@@ -278,7 +278,7 @@ public class Html {
if (style[j] instanceof TypefaceSpan) { if (style[j] instanceof TypefaceSpan) {
String s = ((TypefaceSpan) style[j]).getFamily(); String s = ((TypefaceSpan) style[j]).getFamily();
if (s.equals("monospace")) { if ("monospace".equals(s)) {
out.append("<tt>"); out.append("<tt>");
} }
} }