Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fce708d2 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 9ef2117f: am bc06158a: Merge "Check for null in LocalSocketImpl.SocketInputStream.available()"

* commit '9ef2117f':
  Check for null in LocalSocketImpl.SocketInputStream.available()
parents 9472cadd 9ef2117f
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -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} */