Skip to content

Bugfix/22 bug nullpointerexception with ecu type#24

Merged
kaushalaroraharman merged 2 commits into
mainfrom
bugfix/22-bug-nullpointerexception-with-ecu-type
May 13, 2025
Merged

Bugfix/22 bug nullpointerexception with ecu type#24
kaushalaroraharman merged 2 commits into
mainfrom
bugfix/22-bug-nullpointerexception-with-ecu-type

Conversation

@kaushalaroraharman
Copy link
Copy Markdown
Contributor

Resolves #22


Describe behaviour before the change

  • Facing null pointer exception when attempting to convert ECU type in Ignite Event to lower case.

Describe behaviour after the change

  • Added null check to fetched ECU type from Ignite Event, before attempting any case conversion.

Pull request checklist

  • I have read the CONTRIBUTING.md
  • My code follows the code style of this project
  • Tests for the changes have been added (for bug fixes / features)
  • All new and existing tests passed.
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

  • Yes
  • No

ihussainbadshah and others added 2 commits May 13, 2025 12:57
…iteEvent while deciding the flow for the IgniteEvent.
…exception-with-ecu-type

Issue #22 Fixed NullPointerException if ecuType is not set in the IgniteEvent while deciding the flow for the IgniteEvent.
@kaushalaroraharman kaushalaroraharman self-assigned this May 13, 2025
@kaushalaroraharman kaushalaroraharman added the bug Something isn't working label May 13, 2025
@kaushalaroraharman kaushalaroraharman added this to the 1.0.1 milestone May 13, 2025
Copy link
Copy Markdown
Contributor Author

@kaushalaroraharman kaushalaroraharman left a comment

Choose a reason for hiding this comment

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

Review Feedback
Correctness:

Adding value.getEcuType() != null prevents potential NullPointerException when calling toLowerCase(). This change is logical and enhances the safety of the code.
Code Style:

The change adheres to standard Java practices for null-checking and ensures defensive programming.
Performance:

No significant performance impact is expected as the added condition is a simple null-check.

@kaushalaroraharman kaushalaroraharman merged commit 1b9d9fa into main May 13, 2025
7 of 10 checks passed
@sonarqubecloud
Copy link
Copy Markdown

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: NullPointerException when attempting to convert EcuType fetched from IgniteEvent to lower case

2 participants