Skip to content

[BUG] EnumResolver produces NullPointerException #363

@robinwersich

Description

@robinwersich

Describe the bug
When building my project, I currently get the following exception:

 java.lang.NullPointerException
        at tech.mappie.ir.resolving.enums.EnumResolver.resolve(EnumResolver.kt:23)
        at tech.mappie.ir.resolving.ResolvingStage.execute(ResolvingStage.kt:23)
        at tech.mappie.ir.generation.classes.ClassMappieCodeGenerationModelFactory.generate(ClassMappieCodeGenerationModelFactory.kt:61)

To Reproduce
Unfortunately I was not yet able to find out what exactly causes this exception - but I see that the !! operator is used in the EnumResolver, so this should probably change

Expected behavior
A more descriptive error message that points me to why the mapping is failing (e.g. showing me at least for which enum the mapping is failing)

Kotlin version
The version of kotlin used.

Mappie version
2.2.21-2.1.1

Invocation method
Gradle

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions