Loading core/java/android/net/LocalSocketImpl.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -56,7 +56,10 @@ class LocalSocketImpl /** {@inheritDoc} */ /** {@inheritDoc} */ @Override @Override public int available() throws IOException { public int available() throws IOException { return available_native(fd); FileDescriptor myFd = fd; if (myFd == null) throw new IOException("socket closed"); return available_native(myFd); } } /** {@inheritDoc} */ /** {@inheritDoc} */ Loading Loading
core/java/android/net/LocalSocketImpl.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -56,7 +56,10 @@ class LocalSocketImpl /** {@inheritDoc} */ /** {@inheritDoc} */ @Override @Override public int available() throws IOException { public int available() throws IOException { return available_native(fd); FileDescriptor myFd = fd; if (myFd == null) throw new IOException("socket closed"); return available_native(myFd); } } /** {@inheritDoc} */ /** {@inheritDoc} */ Loading