mirror of
https://github.com/accelforce/Yuito
synced 2024-12-28 08:42:06 +01:00
fix crash caused by broken mention (#1360)
This commit is contained in:
parent
c861c992ca
commit
fdee75c84a
@ -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…
Reference in New Issue
Block a user