Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2014-08-25 17:35:49 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2014-08-25 17:35:49 +0400
commitb50dac37f339129b64f4a1a683fa4428e5989765 (patch)
tree6c1f2b40561a7f917998c2929d64abe0db28b1ed
parent800f97306ca35b24ef491eb34089a4353c43abf5 (diff)
Fixed a crash that was introduced with 0198fb8.
-rw-r--r--Duplicati/Server/Database/ApplicationSettings.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Duplicati/Server/Database/ApplicationSettings.cs b/Duplicati/Server/Database/ApplicationSettings.cs
index 618c8ef72..b4a8a1278 100644
--- a/Duplicati/Server/Database/ApplicationSettings.cs
+++ b/Duplicati/Server/Database/ApplicationSettings.cs
@@ -58,6 +58,8 @@ namespace Duplicati.Server.Database
lock(m_connection.m_lock)
{
m_values.Clear();
+ foreach(var n in typeof(CONST).GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Static).Select(x => (string)x.GetValue(null)))
+ m_values[n] = null;
foreach(var n in m_connection.GetSettings(Connection.APP_SETTINGS_ID))
m_values[n.Name] = n.Value;
}