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:
- 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
- $draft a new Library from the SpecificationLibrary.
- $approve the newly drafted Library
- $release the approved draft with parameter 'latestFromTxServer' false.
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: