Bug #92625 Contribution: Fix observed NPE in clearInputStream
Submitted: 1 Oct 2018 18:48 Modified: 14 Dec 2018 20:31
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.0.12 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[1 Oct 2018 18:48] OCA Admin
Description:
This bug tracks a contribution by Henning Schmiedehausen (Github user: hgschmie) as described in http://github.com/mysql/mysql-connector-j/pull/29

How to repeat:
See description

Suggested fix:
See contribution code attached
[1 Oct 2018 18:48] OCA Admin
Contribution submitted via Github - Fix observed NPE in clearInputStream 
(*) Contribution by Henning Schmiedehausen (Github hgschmie, mysql-connector-j/pull/29#issuecomment-426014484): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_216088458.txt (text/plain), 2.76 KiB.

[2 Oct 2018 4:27] Umesh Shastry
Hello Henning,

Thank you for the report and contribution.

thanks,
Umesh
[10 Nov 2018 4:01] Henning Schmiedehausen
So, was this merged in 8.0.13 ?
[12 Nov 2018 13:10] Filipe Silva
Hi Henning,

I'm sorry but, as per company policies, we can't share such details.

We are aware of this bug and will fix it as soon as possible. Please check this report or release notes for next releases to see when it gets fixed.

Thank you very much for your contribution and interest in MySQL and Connector/J.
[14 Dec 2018 20:31] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 8.0.14 changelog:

"clearInputStream() returned a NullPointerException when the mysqlSocket, mysqlInput, or mysqlOutput object it tried to retrieve was null. With this fix, an IOExcpetion is thrown instead in the situation. Thanks to Henning Schmiedehausen for contributing to the fix."