Skip to content

Commit

Permalink
修复归档下载因下载链接为空时导致的奔溃问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojieonly committed Apr 3, 2024
1 parent f8d5e27 commit 4058c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ dependencies {

implementation 'org.ccil.cowan.tagsoup:tagsoup:1.2.1'
implementation 'org.greenrobot:greendao:3.0.0'
implementation 'org.jsoup:jsoup:1.17.2'
// https://mvnrepository.com/artifact/org.jsoup/jsoup
implementation 'org.jsoup:jsoup:1.15.3'

//事件通知
implementation 'org.greenrobot:eventbus:3.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void onSuccess(String downloadUrl) {
dialog.dismiss();
showTip(R.string.download_archive_started, LENGTH_SHORT);
File file = AppConfig.getExternalArchiverDir();
if (file == null) {
if (file == null || downloadUrl == null) {
return;
}
Uri downloadUri = Uri.parse(downloadUrl);
Expand Down

0 comments on commit 4058c35

Please sign in to comment.