Skip to content

Commit

Permalink
Fixed crash due to reddit thumbnail API change
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Sep 9, 2016
1 parent 7392c6e commit 0539603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For albums with only one image, the image is now shown immediately
When sending PMs, input fields are cleared if send succeeded
Fixed bug with huge "load more comments" links
Support for imgflip links
Fixed crash due to reddit thumbnail API change

73/1.9.5.1
Comment swipe actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,12 @@ private CacheEntry mostRecentFromList(final LinkedList<CacheEntry> list) {

private void queueDownload(final CacheRequest request) {
request.notifyDownloadNecessary();
downloadQueue.add(request, CacheManager.this);

try {
downloadQueue.add(request, CacheManager.this);
} catch(final Exception e) {
request.notifyFailure(CacheRequest.REQUEST_FAILURE_MALFORMED_URL, e, null, e.toString());
}
}

private void handleCacheEntryFound(final CacheEntry entry, final CacheRequest request) {
Expand Down

0 comments on commit 0539603

Please sign in to comment.