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

[INLONG-10748][SDK] Fix some null pointer dereference risks in the code. #10753

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

yfsn666
Copy link
Contributor

@yfsn666 yfsn666 commented Aug 6, 2024

Fixes #10748

Motivation

A code scan found some null pointer dereference risks in the code, which will produce NullPointerException in some cases.

Modifications

Add some object non-null judgments or modify the code's processing logic.

Verifying this change

(Please pick either of the following options)

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

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

  • This change added tests and can be verified as follows:

    (example:)

    • Added integration tests for end-to-end deployment with large payloads (10MB)
    • Extended integration test for recovery after broker failure

Documentation

  • Does this pull request introduce a new feature? no

@yfsn666 yfsn666 changed the title [INLONG-10748] Fix some null pointer dereference risks in the code. [INLONG-10748][Bug] Fix some null pointer dereference risks in the code. Aug 6, 2024
@aloyszhang aloyszhang changed the title [INLONG-10748][Bug] Fix some null pointer dereference risks in the code. [INLONG-10748][Common] Fix some null pointer dereference risks in the code. Aug 6, 2024
@luchunliang luchunliang merged commit 30ce46c into apache:master Aug 6, 2024
11 checks passed
@luchunliang luchunliang changed the title [INLONG-10748][Common] Fix some null pointer dereference risks in the code. [INLONG-10748][SDK] Fix some null pointer dereference risks in the code. Aug 6, 2024
emptyOVO pushed a commit to emptyOVO/inlong that referenced this pull request Aug 15, 2024
…de. (apache#10753)

* [INLONG-10748] Fix some null pointer dereference risks in the code.

* [INLONG-10748] Optimize the processing logic of `StringUtils.java`.

---------

Co-authored-by: jameswyli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Some null pointer dereference risks in the code
6 participants