Skip to content

Address NullPointerException if the users has not specified a baseline hash for directory#675

Draft
dennis-behm wants to merge 1 commit intoIBM:mainfrom
dennis-behm:feature/674-exception-in-case-no-user-supplied-baseline-ref-is-returned-by-the-utility-method
Draft

Address NullPointerException if the users has not specified a baseline hash for directory#675
dennis-behm wants to merge 1 commit intoIBM:mainfrom
dennis-behm:feature/674-exception-in-case-no-user-supplied-baseline-ref-is-returned-by-the-utility-method

Conversation

@dennis-behm
Copy link
Copy Markdown
Member

This addresses defect #674 when multiple directories are on applicationSrcDirs, but the user does not have specified a baseline ash for each directory, like outlined in docs/BUILD.md

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
@wfezzani
Copy link
Copy Markdown

wfezzani commented Feb 24, 2026

I suggest the following change which has been tested and validated:

String baselineRef = props.baselineRef ? buildUtils.getUserProvidedBaselineRef(dir) : null
String userBaselineRef = baselineRef ? userBaselineRef.replaceAll("origin/","")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants