diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-01-09 16:35:02 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-01-09 16:35:02 (GMT) |
commit | c9ff80a46b13b7d1987bf54cae87738a9baf552b (patch) | |
tree | c01a02c96aa1b9db5529f8885e4ed90b2098cc27 | |
parent | cc760bfd15caadb56bfef477cb54dc94c25f7fa7 (diff) | |
download | stroke-c9ff80a46b13b7d1987bf54cae87738a9baf552b.zip stroke-c9ff80a46b13b7d1987bf54cae87738a9baf552b.tar.bz2 |
Fix misport of AttributeMap.getValue, which allowed it to return null
-rw-r--r-- | src/com/isode/stroke/parser/AttributeMap.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/parser/AttributeMap.java b/src/com/isode/stroke/parser/AttributeMap.java index e628392..fb4aa68 100644 --- a/src/com/isode/stroke/parser/AttributeMap.java +++ b/src/com/isode/stroke/parser/AttributeMap.java @@ -15,7 +15,7 @@ import java.util.HashMap; */ public class AttributeMap extends HashMap<String, String> { public String getAttribute(String attribute) { - return this.get(attribute); + return this.containsKey(attribute) ? this.get(attribute) : ""; } public String getAttributeValue(String attribute) { |