Skip to content

Commit

Permalink
Merge pull request #2184 from GDLMadushanka/unittest2
Browse files Browse the repository at this point in the history
Fix NPE in synapse unit tests.
  • Loading branch information
GDLMadushanka authored Jun 11, 2024
2 parents 31cae45 + ae03daf commit 00f7942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ ArtifactData readAndStoreArtifactData() throws XMLStreamException, IOException {
QName qualifiedRegistryArtifactFile = new QName("", ARTIFACT, "");
OMElement registryArtifactsFileNode = resource.getFirstChildWithName(qualifiedRegistryArtifactFile);
String resourceArtifact = registryArtifactsFileNode.getText();
if (resourceArtifact.isEmpty()) {
if (resourceArtifact.isEmpty() && registryArtifactsFileNode.getFirstOMChild() != null) {
resourceArtifact = registryArtifactsFileNode.getFirstOMChild().toString();
}

Expand Down

0 comments on commit 00f7942

Please sign in to comment.