mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -08:00
Catch another weird crash in Android on bad server response
git-svn-id: https://zxing.googlecode.com/svn/trunk@2563 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
699e3ff2a8
commit
0302080139
|
@ -210,6 +210,10 @@ public final class HttpHelper {
|
|||
// this is maybe this Android bug: http://code.google.com/p/android/issues/detail?id=15554
|
||||
Log.w(TAG, "Bad URI? " + uri);
|
||||
throw new IOException(npe.toString());
|
||||
} catch (NumberFormatException nfe) {
|
||||
// Again seen this in the wild for bad header fields in the server response!
|
||||
Log.w(TAG, "Bad server status? " + uri);
|
||||
throw new IOException(nfe.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue