import net.rizon.moo.conf.ConfigurationException;
import net.rizon.moo.conf.Validator;
-
public class CommitsConfiguration extends Configuration
{
public String ip;
/**
* Loads Commits Configuration settings.
+ *
* @return Configuration settings.
* @throws Exception Thrown when something goes wrong.
*/
List<String> chans = new ArrayList<>();
- for (RepositoriesConfiguration conf : channels)
+ if (channels != null)
{
- if (conf.repositories.contains(repository.toLowerCase()))
+ for (RepositoriesConfiguration conf : channels)
{
- chans.addAll(conf.channels);
+ if (conf.repositories.contains(repository.toLowerCase()))
+ {
+ chans.addAll(conf.channels);
- found = true;
+ found = true;
+ }
}
}