diff --git a/compiler-plugin/src/main/kotlin/tech/mappie/MappieCompilerPluginRegistrar.kt b/compiler-plugin/src/main/kotlin/tech/mappie/MappieCompilerPluginRegistrar.kt index acde5c55..ae694b7a 100644 --- a/compiler-plugin/src/main/kotlin/tech/mappie/MappieCompilerPluginRegistrar.kt +++ b/compiler-plugin/src/main/kotlin/tech/mappie/MappieCompilerPluginRegistrar.kt @@ -19,6 +19,7 @@ class MappieCompilerPluginRegistrar : CompilerPluginRegistrar() { override val supportsK2: Boolean = true override fun ExtensionStorage.registerExtensions(configuration: CompilerConfiguration) { + val messageCollector = configuration.get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE) IrGenerationExtension.registerExtension( MappieIrRegistrar( diff --git a/compiler-plugin/src/main/kotlin/tech/mappie/preprocessing/DefinitionsCollector.kt b/compiler-plugin/src/main/kotlin/tech/mappie/preprocessing/DefinitionsCollector.kt index f1c53335..6c786512 100644 --- a/compiler-plugin/src/main/kotlin/tech/mappie/preprocessing/DefinitionsCollector.kt +++ b/compiler-plugin/src/main/kotlin/tech/mappie/preprocessing/DefinitionsCollector.kt @@ -26,7 +26,8 @@ class DefinitionsCollector(val context: MappieContext) { class BuiltinMappieDefinitionsCollector(val context: MappieContext) { fun collect() = MAPPERS - .map { name -> context.pluginContext.referenceClass(ClassId(FqName(PACKAGE), Name.identifier(name)))!!.owner } + .map { name -> context.pluginContext.referenceClass(ClassId(FqName(PACKAGE), Name.identifier(name)))?.owner } + .filterNotNull() .map { MappieDefinition(it) } companion object { diff --git a/gradle.properties b/gradle.properties index d12cae79..6177143b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.9.1 \ No newline at end of file +version=0.9.2 \ No newline at end of file diff --git a/website/src/changelog.md b/website/src/changelog.md index 5cd4c431..509950b4 100644 --- a/website/src/changelog.md +++ b/website/src/changelog.md @@ -2,6 +2,10 @@ title: "Changelog" layout: "layouts/changelog.html" changelog: + - date: "2024-11-18" + title: "v0.9.2" + items: + - "Fixed null pointer in some cases." - date: "2024-11-16" title: "v0.9.1" items: