fix: NPE when sharing an image and the URL is null
This commit is contained in:
parent
4ceacae954
commit
d0e4578af0
|
@ -941,6 +941,8 @@ public class UiUtils{
|
|||
//
|
||||
// COPIED FROM https://github.com/tuskyapp/Tusky/blob/develop/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.kt
|
||||
public static boolean looksLikeMastodonUrl(String urlString) {
|
||||
if(urlString == null)
|
||||
return false;
|
||||
URI uri;
|
||||
try {
|
||||
uri = new URI(urlString);
|
||||
|
|
Loading…
Reference in New Issue