Bugfix: tag values can be null (e.g. changing feature type), so guard against that...
authorAndy Allan <andy@gravitystorm.co.uk>
Sun, 3 Apr 2011 14:43:31 +0000 (15:43 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Sun, 3 Apr 2011 14:43:31 +0000 (15:43 +0100)
net/systemeD/halcyon/connection/actions/SetTagAction.as

index 9e3680d..9f1b90c 100644 (file)
@@ -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 {