Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional launch context parameter cases jute error #51

Open
vesnushka opened this issue Mar 24, 2023 · 0 comments
Open

Optional launch context parameter cases jute error #51

vesnushka opened this issue Mar 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vesnushka
Copy link
Member

vesnushka commented Mar 24, 2023

If not required launch context variable is used in Mapping the variable will be empty so when it used in calculations an error is displayed but extraction works correctly

Example. Using optional variable Practitioner in Mapping

body:
    $let:
        practitioner: $ Practitioner
    .... 
    
    - request:
                  url: /Provenance
                  method: POST
      resource:
                  resourceType: Provenance
                  agent:
                      - who:
                            id: $ practitioner.id
                            resourceType: $ practitioner.resourceType
                            display: $ practitioner.name.0.given.0 + ' ' + practitioner.name.0.family

the error:

java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "x" is null While evaluating JUTE template at @.$body.entry.1.resource.agent.0.who.display (exception)
@vesnushka vesnushka added the bug Something isn't working label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant