#vulnerable code 
                                private int[] getEloValues(int vP, int aP) {
        PluginConfig config = Settings.getConfig();
        int[] rankChanges = new int[2];
        
        int aC = IntegerRange.inRange(aP, config.eloConstants);
        int vC = IntegerRange.inRange(vP, config.eloConstants);
        
        rankChanges[0] = (int) Math.round(aC * (1 - (1.0D / (1.0D + Math.pow(config.eloExponent, (vP - aP) / config.eloDivider)))));
        rankChanges[1] = (int) Math.round(vC * (0 - (1.0D / (1.0D + Math.pow(config.eloExponent, (aP - vP) / config.eloDivider)))) * -1);
        
        return rankChanges;
    } 
                            #location 6 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private int[] getEloValues(int vP, int aP) {
        PluginConfig config = Settings.getConfig();
        int[] rankChanges = new int[2];
        
        int aC = IntegerRange.inRange(aP, config.eloConstants, "ELO_CONSTANTS");
        int vC = IntegerRange.inRange(vP, config.eloConstants, "ELO_CONSTANTS");
        
        rankChanges[0] = (int) Math.round(aC * (1 - (1.0D / (1.0D + Math.pow(config.eloExponent, (vP - aP) / config.eloDivider)))));
        rankChanges[1] = (int) Math.round(vC * (0 - (1.0D / (1.0D + Math.pow(config.eloExponent, (aP - vP) / config.eloDivider)))) * -1);
        
        return rankChanges;
    }