diff --git a/build.gradle b/build.gradle index 2f33e70..d380938 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ repositories { } dependencies { - implementation("me.shedaniel:linkie-core:1.0.80") { + implementation("me.shedaniel:linkie-core:1.0.81") { exclude module: "korio" } implementation("com.discord4j:discord4j-core:3.1.3") { diff --git a/src/main/kotlin/me/shedaniel/linkie/discord/commands/QueryTranslateMappingsCommand.kt b/src/main/kotlin/me/shedaniel/linkie/discord/commands/QueryTranslateMappingsCommand.kt index 5ae1e6f..aa1cb9d 100644 --- a/src/main/kotlin/me/shedaniel/linkie/discord/commands/QueryTranslateMappingsCommand.kt +++ b/src/main/kotlin/me/shedaniel/linkie/discord/commands/QueryTranslateMappingsCommand.kt @@ -171,6 +171,10 @@ class QueryTranslateMappingsCommand( } } } + + if (newResult.isEmpty()) { + throw NullPointerException("Some results were found, but was unable to translate to the target namespace! Please report this issue!") + } return TranslationResult( source.toSimpleMappingsMetadata(),