The crash is fixed somehow
This commit is contained in:
+1
-4
@@ -42,10 +42,7 @@ interface MetadataSource<M : RaisedSearchMetadata, I> : CatalogueSource {
|
||||
/**
|
||||
* Use reflection to create a new instance of metadata
|
||||
*/
|
||||
private fun newMetaInstance() = metaClass.constructors.find {
|
||||
it.parameters.isEmpty()
|
||||
}?.call()
|
||||
?: error("Could not find no-args constructor for meta class: ${metaClass.qualifiedName}!")
|
||||
fun newMetaInstance(): M
|
||||
|
||||
/**
|
||||
* Parses metadata from the input and then copies it into the manga
|
||||
|
||||
Reference in New Issue
Block a user