mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 18:28:59 +03:00
Check url emptiness
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
72fc1d0def
commit
50f7639c37
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ class HttpStreamFetcher internal constructor(
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
override fun loadData(priority: Priority): InputStream? {
|
override fun loadData(priority: Priority): InputStream? {
|
||||||
val client = clientFactory.create(user)
|
val client = clientFactory.create(user)
|
||||||
if (client != null) {
|
|
||||||
|
if (client != null && url.isNotBlank()) {
|
||||||
var get: GetMethod? = null
|
var get: GetMethod? = null
|
||||||
try {
|
try {
|
||||||
get = GetMethod(url)
|
get = GetMethod(url)
|
||||||
|
|
Loading…
Reference in a new issue