Skip to content

Commit

Permalink
fix: Catch correct exception
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 12, 2023
1 parent 9a109c1 commit 637d487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sealed class PatchBundleLoader private constructor(
internal fun Class<*>.getInstance(logger: Logger): Patch<*>? {
return try {
getField("INSTANCE").get(null)
} catch (exception: NoSuchFileException) {
} catch (exception: NoSuchFieldException) {
logger.fine(
"Patch class '${name}' has no INSTANCE field, therefor not a singleton. " +
"Will try to instantiate it."
Expand Down

0 comments on commit 637d487

Please sign in to comment.