Commit de8690cccbd61dcca361f5ea631c752ce6cb2aa6
1 parent
72676211
Exists in
master
Retorno do valor nulo para chaves sem valor
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/ConfigurationStringValueExtractor.java
| ... | ... | @@ -50,7 +50,13 @@ public class ConfigurationStringValueExtractor implements ConfigurationValueExtr |
| 50 | 50 | |
| 51 | 51 | @Override |
| 52 | 52 | public Object getValue(String prefix, String key, Field field, Configuration configuration) { |
| 53 | - return configuration.getString(prefix + key); | |
| 53 | + Object value = configuration.getString(prefix + key); | |
| 54 | + | |
| 55 | + if (value.equals("")) { | |
| 56 | + value = null; | |
| 57 | + } | |
| 58 | + | |
| 59 | + return value; | |
| 54 | 60 | } |
| 55 | 61 | |
| 56 | 62 | @Override | ... | ... |