fix crash caused by broken mention (#1360)
This commit is contained in:
parent
69eb5d8c7d
commit
59a464e5ae
|
@ -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…
Reference in New Issue