From cfacb729c090fff2eff9b19730e2c10282e9149b Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Sat, 8 Oct 2022 12:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E8=BF=9C=E7=A8=8Bwebdav?= =?UTF-8?q?=E4=B9=A6=E7=B1=8D=E6=97=B6=E6=A3=80=E6=9F=A5=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=98=AF=E5=90=A6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/LocalBook.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt index 3e4a67060..3c8e0eaf8 100644 --- a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt +++ b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt @@ -308,6 +308,8 @@ object LocalBook { val webDavUrl = localBook.getRemoteUrl() if (webDavUrl.isNullOrBlank()) return null try { + AppConfig.defaultBookTreeUri + ?: throw NoStackTraceException("没有设置书籍保存位置!") val uri = AppWebDav.authorization?.let { val webdav = WebDav(webDavUrl, it) runBlocking {