forked from ShareASmile/NewPipeZing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use IllegalArgumentException instead of UnsupportedEncodingException …
…in Recaptcha activity
- Loading branch information
1 parent
5cc6139
commit f686a31
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,6 @@ | |
import org.schabi.newpipe.extractor.utils.Utils; | ||
import org.schabi.newpipe.util.ThemeHelper; | ||
|
||
import java.io.UnsupportedEncodingException; | ||
|
||
/* | ||
* Created by beneth <[email protected]> on 06.12.16. | ||
* | ||
|
@@ -190,11 +188,10 @@ private void handleCookiesFromUrl(@Nullable final String url) { | |
String abuseCookie = url.substring(abuseStart + 13, abuseEnd); | ||
abuseCookie = Utils.decodeUrlUtf8(abuseCookie); | ||
handleCookies(abuseCookie); | ||
} catch (UnsupportedEncodingException | StringIndexOutOfBoundsException e) { | ||
} catch (IllegalArgumentException | StringIndexOutOfBoundsException e) { | ||
if (MainActivity.DEBUG) { | ||
e.printStackTrace(); | ||
Log.d(TAG, "handleCookiesFromUrl: invalid google abuse starting at " | ||
+ abuseStart + " and ending at " + abuseEnd + " for url " + url); | ||
Log.e(TAG, "handleCookiesFromUrl: invalid google abuse starting at " | ||
+ abuseStart + " and ending at " + abuseEnd + " for url " + url, e); | ||
} | ||
} | ||
} | ||
|