Skip to content

[Fix-7062][MasterServer] NPE when run switch conditions sub-process#7687

Merged
lenboo merged 1 commit intoapache:devfrom
aaronlinv:Fix-7062
Dec 29, 2021
Merged

[Fix-7062][MasterServer] NPE when run switch conditions sub-process#7687
lenboo merged 1 commit intoapache:devfrom
aaronlinv:Fix-7062

Conversation

@aaronlinv
Copy link
Contributor

Purpose of the pull request

#7062

The submit method of SwitchTaskProcessor calls the setTaskExecutionLogger method of the super class. The setTaskExecutionLogger method requires the super class member-variable: taskInstance and processInstance, and SwitchTaskProcessor defines member-variable with the same name, which causes the super class member variables to be uninitialized, resulting in a NullPointerException

Similar problems exist with conditions and sub-processes

Brief change log

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:

@lenboo lenboo added the first time contributor First-time contributor label Dec 28, 2021
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@lenboo lenboo left a comment

Choose a reason for hiding this comment

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

+1

@lenboo lenboo merged commit 9a1cea4 into apache:dev Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first time contributor First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants