Check url emptiness

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-08-07 15:55:18 +02:00 committed by Alper Öztürk
parent 72fc1d0def
commit 50f7639c37

View file

@ -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)