fix crash caused by broken mention (#1360)

main
Konrad Pozniak 6 years ago committed by GitHub
parent 69eb5d8c7d
commit 59a464e5ae
  1. 4
      app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java

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

Loading…
Cancel
Save