The crash is fixed somehow

This commit is contained in:
Jobobby04
2023-03-15 19:01:44 -04:00
parent d400ddc0a5
commit 04dc4ef66a
10 changed files with 13 additions and 8 deletions
@@ -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