Skip to content

[BUG] - NPE #49

@NicolasRouquette

Description

@NicolasRouquette

Description

A clear and concise description of what the bug is.

with the following in build.gradle:

classpath 'io.opencaesar.adapters:oml2owl-gradle:1.0.+'

in a project caught in the unpleasant OML 1.0 migration, I get:

.\gradlew omlToOwlRdf --stacktrace
> Task :omlToOwlRdf FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':omlToOwlRdf'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':omlToOwlRdf'.
        at io.opencaesar.oml2owl.Oml2OwlTask.run(Oml2OwlTask.java:75)
 ...
Caused by: java.lang.NullPointerException
        at org.eclipse.emf.ecore.util.EcoreUtil.getID(EcoreUtil.java:3715)
        at io.opencaesar.oml.validate.OmlValidator$1.getObjectLabel(OmlValidator.java:41)
        at org.eclipse.emf.ecore.util.Diagnostician.createDefaultDiagnostic(Diagnostician.java:111)
        at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:130)
        at io.opencaesar.oml.validate.OmlValidator.validate(OmlValidator.java:47)
        at io.opencaesar.oml2owl.Oml2OwlApp.run(Oml2OwlApp.java:197)
        at io.opencaesar.oml2owl.Oml2OwlApp.main(Oml2OwlApp.java:158)
        at io.opencaesar.oml2owl.Oml2OwlTask.run(Oml2OwlTask.java:73)

* Get more help at https://help.gradle.org

Steps to Reproduce

Steps to reproduce the behavior:

  • I am working on migrating OML to 1.0

Expected Behavior

A clear and concise description of what should be the expected behavior.

No NPE!

Additional Context

Enter any other details such as dependencies, environment, examples, etc.

Relevant screenshots

If applicable, add screenshots to help illustrate the issue.

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