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:
srowen 2012-11-25 11:33:13 +00:00
parent caf7734595
commit 491102ba93

View file

@ -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
Log.w(TAG, "Bad URI? " + uri);
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;
try {