Commit f9e70536 authored by Geoffrey Métais's avatar Geoffrey Métais

Ignore IllegalArgumentException for art download

parent c6a6c9e8
...@@ -47,7 +47,6 @@ import java.io.IOException; ...@@ -47,7 +47,6 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.lang.ref.SoftReference; import java.lang.ref.SoftReference;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
public class HttpImageLoader implements Callbacks { public class HttpImageLoader implements Callbacks {
...@@ -120,10 +119,7 @@ public class HttpImageLoader implements Callbacks { ...@@ -120,10 +119,7 @@ public class HttpImageLoader implements Callbacks {
InputStream in = new BufferedInputStream(urlConnection.getInputStream()); InputStream in = new BufferedInputStream(urlConnection.getInputStream());
icon = BitmapFactory.decodeStream(in); icon = BitmapFactory.decodeStream(in);
iconsMap.put(imageUrl, new SoftReference<>(icon)); iconsMap.put(imageUrl, new SoftReference<>(icon));
} catch (MalformedURLException e) { } catch (IOException|IllegalArgumentException ignored) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally { } finally {
if (urlConnection != null) if (urlConnection != null)
urlConnection.disconnect(); urlConnection.disconnect();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment