summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-01-09 16:35:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-01-09 16:35:02 (GMT)
commitc9ff80a46b13b7d1987bf54cae87738a9baf552b (patch)
treec01a02c96aa1b9db5529f8885e4ed90b2098cc27 /src/com
parentcc760bfd15caadb56bfef477cb54dc94c25f7fa7 (diff)
downloadstroke-c9ff80a46b13b7d1987bf54cae87738a9baf552b.zip
stroke-c9ff80a46b13b7d1987bf54cae87738a9baf552b.tar.bz2
Fix misport of AttributeMap.getValue, which allowed it to return null
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/parser/AttributeMap.java2
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) {