mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Catch rare SecurityException when accessing HTTP
git-svn-id: https://zxing.googlecode.com/svn/trunk@2532 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
caf7734595
commit
491102ba93
|
@ -190,6 +190,10 @@ public final class HttpHelper {
|
||||||
// Also seen this in the wild, not sure what to make of it. Probably a bad URL
|
// Also seen this in the wild, not sure what to make of it. Probably a bad URL
|
||||||
Log.w(TAG, "Bad URI? " + uri);
|
Log.w(TAG, "Bad URI? " + uri);
|
||||||
throw new IOException(iae.toString());
|
throw new IOException(iae.toString());
|
||||||
|
} catch (SecurityException se) {
|
||||||
|
// due to bad VPN settings?
|
||||||
|
Log.w(TAG, "Restricted URI? " + uri);
|
||||||
|
throw new IOException(se);
|
||||||
}
|
}
|
||||||
int responseCode;
|
int responseCode;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue