Skip to content

NPE thrown in $release operation #814

@Chris0296

Description

@Chris0296

When running the $release operation with 'latestFromTxServer' disabled, a NPE is causing the operation to fail.

Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1769) at java.base/java.util.regex.Matcher.reset(Matcher.java:415) at java.base/java.util.regex.Matcher.<init>(Matcher.java:252) at java.base/java.util.regex.Pattern.matcher(Pattern.java:1145) at org.opencds.cqf.fhir.utility.VersionComparator.isDate(VersionComparator.java:120) at org.opencds.cqf.fhir.utility.VersionComparator.compare(VersionComparator.java:21) at org.opencds.cqf.fhir.utility.adapter.IKnowledgeArtifactAdapter.lambda$findLatestVersion$7(IKnowledgeArtifactAdapter.java:351)

To reproduce:

  1. Perform $ersd-v2-import with the ersd bundle: https://github.com/DBCG/aphl-ersd-specifications-v3/blob/main/input/resources/bundle/change_preview/Bundle-rctc-release-3.0.3-Bundle-rctc.json
  2. $draft a new Library from the SpecificationLibrary.
  3. $approve the newly drafted Library
  4. $release the approved draft with parameter 'latestFromTxServer' false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions