Skip to content

Conversation

@jbrown-lucid
Copy link
Contributor

Log the job name and key name when a datamap key fails due to a null value.

jobData.getKeys.foldLeft(List[DataMap]())((sofar, key) => {
val value = jobData.get(key)
if (value == null) {
throw new NullPointerException(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just log a message and ignore null values instead for stability?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, but I worry about that getting us into an unintended state. I'd like to understand what caused this error first, before deciding the best way to handle it moving forward.

@tnnrj tnnrj merged commit 697cab8 into lucidsoftware:master Dec 17, 2025
1 check passed
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