From 954c74acf5eb8fc871f12be62ff15bc99606a9ee Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sun, 3 Apr 2011 15:43:31 +0100 Subject: [PATCH] Bugfix: tag values can be null (e.g. changing feature type), so guard against that when length limiting. --- net/systemeD/halcyon/connection/actions/SetTagAction.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/systemeD/halcyon/connection/actions/SetTagAction.as b/net/systemeD/halcyon/connection/actions/SetTagAction.as index 9e3680d8..9f1b90ce 100644 --- a/net/systemeD/halcyon/connection/actions/SetTagAction.as +++ b/net/systemeD/halcyon/connection/actions/SetTagAction.as @@ -11,7 +11,7 @@ package net.systemeD.halcyon.connection.actions { public function SetTagAction(entity:Entity, key:String, value:String) { super(entity, "Set "+key+"="+value); this.key = key; - this.value = value.substr(0,255); + this.value = value ? value.substr(0,255): null; } public override function doAction():uint { -- 2.37.0