diff options
author | Yi Kong <yikong@google.com> | 2016-09-14 20:24:35 +0100 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2016-09-15 11:46:49 +0100 |
commit | 6764aa32a4b66a3c589f4a00615a1e36d87f308f (patch) | |
tree | f19480fe8a9c9948cc5781bb0443f4e8c1bec5a2 /annotations/generate_annotated_java_files.py | |
parent | 09fdb03768015c0f442fa7a523ae2ddba53d99f0 (diff) |
Fix NPE when sending DatagramPacket
This is due to code after
getImpl().connect(address, port);
is not executed if it throws exception, leaving DatagramPacket in an
inconsistant state.
Re-arrange the order of code so that the state is now consistent.
Bug: 31218085
Test: libcore.java.net.DatagramSocketTest
Change-Id: Iab9bfd9af211666564e49de62fdae964d6330daf
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions