Bugfix: tag values can be null (e.g. changing feature type), so guard against that...
[potlatch2.git] / net / systemeD / halcyon / connection / actions / SetTagAction.as
index 9e3680d82e663fdb52de954b5195e0962b8155ca..9f1b90cea7232c9edb8e91342f68547e6c51c00c 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 {