Skip to content

Conversation

@njnu-seafish
Copy link
Contributor

Purpose of the pull request

close #17710

Brief change log

add filter some null map keys and unit test

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@SbloodyS SbloodyS added this to the 3.4.0 milestone Nov 21, 2025
@SbloodyS SbloodyS added priority:middle bug Something isn't working labels Nov 21, 2025
@SbloodyS SbloodyS changed the title [Fix-17710][Master]Fix master task dispatch failure by filtering out null map keys. [Fix-17710][Master] Fix master task dispatch failure by filtering out null map keys. Nov 21, 2025
@SbloodyS SbloodyS requested a review from ruanwenjun November 25, 2025 03:12
// of the process instance complement
ICommandParam commandParam = JSONUtils.parseObject(workflowInstance.getCommandParam(), ICommandParam.class);
String timeZone = commandParam.getTimeZone();
String timeZone = commandParam != null ? commandParam.getTimeZone() : null;
Copy link
Member

Choose a reason for hiding this comment

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

commandParam shouldn't be null.


// stream pass params
List<Property> varPools = parseVarPool(taskInstance);
Map<String, Property> prepareParamsMap = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

Revert the unrelated changes.

Comment on lines 257 to 258
// 7. Resolve placeholders (e.g., "${output_dir}") using the current parameter context
resolvePlaceholders(prepareParamsMap);
Copy link
Member

Choose a reason for hiding this comment

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

preBuildBusinessParams should before resolvePlaceholders?

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please don't directly use code generated by AI.

Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

Need to add IT case.

@njnu-seafish
Copy link
Contributor Author

Need to add IT case.

ok, it's added

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Master] Master task dispatch failed due to a null map key, which is not allowed in JsonSerializer

3 participants