From c9ff80a46b13b7d1987bf54cae87738a9baf552b Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Mon, 9 Jan 2012 16:35:02 +0000 Subject: Fix misport of AttributeMap.getValue, which allowed it to return null 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 { public String getAttribute(String attribute) { - return this.get(attribute); + return this.containsKey(attribute) ? this.get(attribute) : ""; } public String getAttributeValue(String attribute) { -- cgit v0.10.2-6-g49f6