summaryrefslogtreecommitdiff
path: root/same/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'same/src/main/java')
-rw-r--r--same/src/main/java/com/orbekk/same/config/Configuration.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/same/config/Configuration.java b/same/src/main/java/com/orbekk/same/config/Configuration.java
index f4cb0cb..75e6ada 100644
--- a/same/src/main/java/com/orbekk/same/config/Configuration.java
+++ b/same/src/main/java/com/orbekk/same/config/Configuration.java
@@ -69,7 +69,10 @@ public class Configuration {
return value;
}
- public int getInt(String name) {
+ public Integer getInt(String name) {
+ if (get(name) == null) {
+ return null;
+ }
return Integer.valueOf(get(name));
}
}