-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: add null check for BroadcastDomainType retrievals #11572
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
refactor: add null check for BroadcastDomainType retrievals #11572
Conversation
Add null check for URI in BroadcastDomainType to prevent NullPointerException. When passing a null URI while enum should be reported as UnDecided, value as null. Signed-off-by: Abhishek Kumar <[email protected]>
4585c7f to
c626a1f
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11572 +/- ##
============================================
- Coverage 16.17% 16.17% -0.01%
+ Complexity 13287 13284 -3
============================================
Files 5656 5656
Lines 498008 498015 +7
Branches 60404 60412 +8
============================================
- Hits 80541 80539 -2
- Misses 408505 408512 +7
- Partials 8962 8964 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Signed-off-by: Abhishek Kumar <[email protected]>
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14841 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14230)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@harikrishna-patnala @DaanHoogland do we need some testing here? |
I think regular regression test are in order. We could also try to white-box this somehow. |
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15855 |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15858 |
|
[SF] Trillian test result (tid-14886)
|
on second thought, regression- and unit tests should be enough. |
Description
Add null check for URI in BroadcastDomainType to prevent NullPointerException. When passing a null URI while enum should be reported as UnDecided, value as null.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?