Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1895

Fix NPE during export with manually added custom operation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: CODEGEN-2.8.0
    • Component/s: Nuxeo CLI

      Description

      Using project attached, export fails due to a NPE.

        nuxeo:generator:maven Caused by: java.lang.NullPointerException +0ms
        nuxeo:generator:maven at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.<init>(OperationTypeImpl.java:122)
        nuxeo:generator:maven 	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.<init>(OperationTypeImpl.java:114)
        nuxeo:generator:maven 	at org.nuxeo.maven.serializer.adapter.OperationAdapter.adapt(OperationAdapter.java:30)
        nuxeo:generator:maven 	at org.nuxeo.maven.serializer.adapter.OperationAdapter.adapt(OperationAdapter.java:26)
        nuxeo:generator:maven 	at org.nuxeo.maven.serializer.JacksonConverter.serialize(JacksonConverter.java:98) +0ms
      

      Operation was added manually and not created using nuxeo CLI.

      Expected: CLI should either refuse to export operation, warn and continue or stop export entirely with a clear error message.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty