diff --git a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java b/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java index 929c0ac46..8fe257bef 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java +++ b/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;