Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improve] Optimize jobsOverview for null to be the starting NPE excep… #4152

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Forus0322
Copy link
Contributor

…tion.

What changes were proposed in this pull request

Issue Number: close #xxx

Brief change log

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

(or)

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

(or)

This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (yes / no)

@caicancai caicancai requested a review from wolfboys December 20, 2024 10:22
@wolfboys
Copy link
Member

There are some code style issue, you can run mvn spotless:apply to fixed them

@@ -305,7 +305,7 @@ private void getStateFromFlink(FlinkApplication application) throws Exception {
FlinkDeployMode deployMode = application.getDeployModeEnum();
if (FlinkDeployMode.YARN_APPLICATION.equals(deployMode)
|| FlinkDeployMode.YARN_PER_JOB.equals(deployMode)) {
if (jobsOverview.getJobs() != null) {
if (jobsOverview!= null && jobsOverview.getJobs() != null) {
Copy link
Member

Choose a reason for hiding this comment

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

There is a code style issue here

@wolfboys
Copy link
Member

Thanks for your contribution. This PR has some code-style issues. Could you please fix them first? If you do, I would be happy to merge it.

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.

3 participants