#vulnerable code 
                                @Override
    public boolean isInIgnoredRegion(Location location) {
        if (! isInRegion(location)) {
            return false;
        }

        PluginConfiguration config = FunnyGuilds.getInstance().getPluginConfiguration();

        return getRegionSet(location).getRegions()
                .stream()
                .anyMatch(region -> config.assistsRegionsIgnored.contains(region.getId()));
    } 
                            #location 9 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Override
    public boolean isInIgnoredRegion(Location location) {
        PluginConfiguration config = FunnyGuilds.getInstance().getPluginConfiguration();
        ApplicableRegionSet regionSet = getRegionSet(location);

        if (regionSet == null) {
            return false;
        }

        return regionSet.getRegions()
                .stream()
                .anyMatch(region -> config.assistsRegionsIgnored.contains(region.getId()));
    }