Skip to content

Commit

Permalink
avoid null error when accessing parenttokens for certain parent job t…
Browse files Browse the repository at this point in the history
…ypes

Signed-off-by: YosiElias <[email protected]>
  • Loading branch information
YosiElias committed Jan 30, 2025
1 parent 41a0edb commit 4fd3746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function ResultSummary() {
const parentRegex = /openjdk(\d+)-pipeline/i;
const parenttokens =
parentBuildInfo.buildName.match(parentRegex);
jdkVersion = parenttokens[1];
jdkVersion = parenttokens?.[1] ?? null;
}

sdkBuilds.forEach((build) => {
Expand Down

0 comments on commit 4fd3746

Please sign in to comment.