-
Notifications
You must be signed in to change notification settings - Fork 642
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
[ISSUE #3649] Method invocation may produce 'NullPointerException'.[CloudEventsProtocolAdaptor] #3660
Conversation
Objects.requireNonNull(EventFormatProvider.getInstance() | ||
.resolveFormat(JsonFormat.CONTENT_TYPE)).serialize(cloudEvent); | ||
map.put("content", new String(eventByte, StandardCharsets.UTF_8)); |
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.
StandardCharsets.UTF_8 replace with Constants.DEFAULT_CHARSET
@Alonexc I think my checkstyle doesn't work anymore, what command do you use to check that? I tried mvn checkstyle:checkstyle but my pom.xml is not really integrating with my directory hence its not working. |
Codecov Report
@@ Coverage Diff @@
## master #3660 +/- ##
============================================
- Coverage 14.62% 13.76% -0.86%
+ Complexity 1526 1292 -234
============================================
Files 651 571 -80
Lines 31713 29239 -2474
Branches 3032 2884 -148
============================================
- Hits 4638 4026 -612
+ Misses 26659 24840 -1819
+ Partials 416 373 -43
... and 246 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Fixes #3649 .
Modifications
Added Objects.requireNonNull() in line 121 and 130 as well as the import java.util.Objects.
Documentation