mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Null check for local source cover parent dir
(cherry picked from commit 573f3a392a)
			
			
This commit is contained in:
		| @@ -45,7 +45,7 @@ class LocalSource(private val context: Context) : CatalogueSource { | ||||
|             val cover = File("${dir.absolutePath}/${manga.url}", COVER_NAME) | ||||
|  | ||||
|             // It might not exist if using the external SD card | ||||
|             cover.parentFile.mkdirs() | ||||
|             cover.parentFile?.mkdirs() | ||||
|             input.use { | ||||
|                 cover.outputStream().use { | ||||
|                     input.copyTo(it) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user