Commit ed5f0d74222b5388bea25cdfcd746aa7fc9df214
Committed by
Paulo Meireles
1 parent
2e1a0ea7
Exists in
staging
and in
42 other branches
[Mezuro] fixed call to Configuration all_names method when all_names
returns nil
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/configuration_content.rb
| ... | ... | @@ -36,7 +36,12 @@ class MezuroPlugin::ConfigurationContent < Article |
| 36 | 36 | |
| 37 | 37 | def kalibro_configuration_names |
| 38 | 38 | begin |
| 39 | - ["None"] + Kalibro::Configuration.all_names.sort | |
| 39 | + all_configuration_names = Kalibro::Configuration.all_names | |
| 40 | + if all_configuration_names.nil? | |
| 41 | + ["None"] | |
| 42 | + else | |
| 43 | + ["None"] + all_configuration_names.sort | |
| 44 | + end | |
| 40 | 45 | rescue Exception => exception |
| 41 | 46 | errors.add_to_base(exception.message) |
| 42 | 47 | ["None"] | ... | ... |