More BitId testing

This commit is contained in:
Rick Falkvinge
2014-10-29 20:55:31 +01:00
parent a8b76f6c89
commit 73130e77c7
+11 -1
View File
@@ -11,7 +11,17 @@ namespace Swarmops.Logic.Support
{
get { return SwarmDb.GetDatabaseForReading().GetKeyValue (key); }
set { SwarmDb.GetDatabaseForWriting().SetKeyValue (key, value); }
set
{
if (value == null)
{
SwarmDb.GetDatabaseForWriting().SetKeyValue(key, "-null-"); // TODO: Delete the key
}
else
{
SwarmDb.GetDatabaseForWriting().SetKeyValue(key, value);
}
}
}
public static Persistence Key