mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-11-04 05:25:35 +00:00 
			
		
		
		
	Removed try/catch for null url
This commit is contained in:
		
							parent
							
								
									be252f9a42
								
							
						
					
					
						commit
						94ea635ca4
					
				@ -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();
 | 
				
			||||||
            final Uri parsedUrl = Uri.parse(url).normalizeScheme();
 | 
					 | 
				
			||||||
        } catch (NullPointerException e) {
 | 
					 | 
				
			||||||
            return null;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // 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());
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user