Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit a694de8

Browse files
committed
Fix null reference bug
1 parent 22fb0d0 commit a694de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zulip/android/util/CustomHtmlToSpannedConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private void handleStartTag(String tag, Attributes attributes) {
164164
} else if (tag.equalsIgnoreCase("a")) {
165165
startA(mSpannableStringBuilder, attributes, mBaseUri);
166166
} else if (tag.equalsIgnoreCase("span")
167-
&& attributes.getValue("class").equals("user-mention")) {
167+
&& "user-mention".equals(attributes.getValue("class"))) {
168168
startSpan(mSpannableStringBuilder, attributes);
169169
} else if (tag.equalsIgnoreCase("u")) {
170170
start(mSpannableStringBuilder, new Underline());

0 commit comments

Comments
 (0)