Browse Source
Removed try/catch for null url
renovate/org.robolectric-robolectric-4.x
tcely
4 years ago
No known key found for this signature in database
GPG Key ID: E361829E1B3040DB
1 changed files with
1 additions and
5 deletions
-
app/src/main/java/awais/instagrabber/utils/IntentUtils.java
|
@ -15,11 +15,7 @@ public final class IntentUtils { |
|
|
|
|
|
|
|
|
@Nullable |
|
|
@Nullable |
|
|
public static IntentModel parseUrl(@NonNull final String url) { |
|
|
public static IntentModel parseUrl(@NonNull final String url) { |
|
|
try { |
|
|
|
|
|
final Uri parsedUrl = Uri.parse(url).normalizeScheme(); |
|
|
|
|
|
} catch (NullPointerException e) { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
final Uri parsedUrl = Uri.parse(url).normalizeScheme(); |
|
|
|
|
|
|
|
|
// final String domain = parsedUrl.getHost().replaceFirst("^www\\.", ""); |
|
|
// final String domain = parsedUrl.getHost().replaceFirst("^www\\.", ""); |
|
|
// final boolean isHttpsUri = "https".equals(parsedUrl.getScheme()); |
|
|
// final boolean isHttpsUri = "https".equals(parsedUrl.getScheme()); |
|
|