Not sure that instream can be null, but assuming it can, there's no point entering the try block if it's null. This avoids NPE warning