Permalink
Browse files

fix: Empty site.yaml crashes SiteGen

  • Loading branch information...
MikeMitterer committed Apr 21, 2015
1 parent 3c3809e commit 91ac1d37a9c6400c23d0e89631075b9ecdb0bd93
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/src/Config.dart
View
@@ -193,7 +193,7 @@ class Config {
}
final yaml.YamlMap map = yaml.loadYaml(file.readAsStringSync());
_settings.keys.forEach((final String key) {
if(map.containsKey(key)) {
if(map != null && map.containsKey(key)) {
_settings[key] = map[key];
//print("Found $key in $configfile: ${map[key]}");
}

0 comments on commit 91ac1d3

Please sign in to comment.