equal
deleted
inserted
replaced
11 |
11 |
12 |
12 |
13 object Position { |
13 object Position { |
14 |
14 |
15 private def get_string(name: String, props: Properties) = { |
15 private def get_string(name: String, props: Properties) = { |
16 val value = props.getProperty(name) |
16 val value = if (props != null) props.getProperty(name) else null |
17 if (value != null) Some(value) else None |
17 if (value != null) Some(value) else None |
18 } |
18 } |
19 |
19 |
20 private def get_int(name: String, props: Properties) = { |
20 private def get_int(name: String, props: Properties) = { |
21 get_string(name, props) match { |
21 get_string(name, props) match { |