String ranges = conn.getHeaderField("Accept-Ranges"); if ((ranges != null) && ranges.equals("bytes")) {. In testing, this fixes the NullPointerException .
確定! 回上一頁