for (int i = 0; i < 4; i++) {
for (int i = 0; i < 4 && i < components.length; i++) {
    public static String convertBytesToVersionString(int[] components)    {        StringBuffer version = new StringBuffer();        for (int i = 0; i < 4; i++) {            if (i == 2) version.append('.');            String digit = String.valueOf((char)components[i]);            if (i == 0 && "0".equals(digit)) continue;            version.append(digit);        }        return version.toString();    }