Commit 1c877546 authored by Pete Bentley's avatar Pete Bentley
Browse files

Handle null file descriptors when finalizing SocketChannelImpl.

Unit test coming later as it requires it requires significant
refactoring to make the code testable.

Bug: 115296581
Test: atest CtsLibcoreTestCases:libcore.java.nio.channels.SocketChannelTest
Test: atest CtsLibcoreTestCases:libcore.java.nio.channels.OldSocketChannelTest
Test: atest CtsLibcoreTestCases:org.apache.harmony.tests.java.nio.channels.SocketChannelTest
Test: Verified that manual repro steps in the bug no longer cause a crash
Change-Id: I0501ac97905b728f2d90aa85867fd1edb38da46e
parent c850021a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment