Fix for NPE when flushBuffer is called before getWriter#22
Conversation
A NPE is thrown when flushBuffer is called before getWriter.
|
@rombert Could you please have a look why the build is failing? And please also review the PR? |
|
@insideaem. First of all , thanks for the PR! I'm not the best person to review this but will reach out to the people who know more. I suspect they'll ask you to create a SLING jira issue with steps to reproduce, so it would be best to do that ahead of time :-) https://issues.apache.org/jira/browse/SLING Your PR fails because we recently updated our CI to test more combinations and we haven't yet adapted all modules. I'll try to fix the scripting core build in the meantime. |
|
Kudos, SonarCloud Quality Gate passed! |
|
2 similar comments
|
|
|
@insideaem Makes sense to prevent the NPE, please create a SLING issue first. As the code has evolved since this PR was created, please also address this for CaptureJakartaResponseWrapper.java |
|











A NPE is thrown when flushBuffer is called before getWriter.