summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
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) {