Browse Source

fix crash caused by broken mention (#1360)

pull/1368/head
Konrad Pozniak 7 years ago committed by GitHub
parent
commit
fdee75c84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java

4
app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java

@ -48,7 +48,9 @@ public class LinkHelper {
return "";
}
String host = uri.getHost();
if (host.startsWith("www.")) {
if(host == null) {
return "";
} else if (host.startsWith("www.")) {
return host.substring(4);
} else {
return host;

Loading…
Cancel
Save