#vulnerable code 
                                public Item getDataItem(int id) throws RiotApiException {

        return StaticDataMethod.getDataItem(getRegion(), getKey(), id, null, null, null);
    } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public Item getDataItem(int id) throws RiotApiException {

        return StaticDataMethod.getDataItem(getRegion(), getKey(), id, null, null, (ItemData) null);
    }