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

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

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

* commit 'bc06158a':
  Check for null in LocalSocketImpl.SocketInputStream.available()
parents e77a77d0 bc06158a
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} */