diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Services/UserAccountService/AgentPreferencesService.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Services/UserAccountService/AgentPreferencesService.cs')
-rw-r--r-- | OpenSim/Services/UserAccountService/AgentPreferencesService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Services/UserAccountService/AgentPreferencesService.cs b/OpenSim/Services/UserAccountService/AgentPreferencesService.cs index 1808ee5..c473d4a 100644 --- a/OpenSim/Services/UserAccountService/AgentPreferencesService.cs +++ b/OpenSim/Services/UserAccountService/AgentPreferencesService.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Services.UserAccountService | |||
41 | { | 41 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 43 | ||
44 | public AgentPreferencesService(IConfigSource config) : base(config) | 44 | public AgentPreferencesService(IConfigSource config) : base(config) |
45 | { | 45 | { |
46 | m_log.Debug("[AGENT PREFERENCES SERVICE]: Starting agent preferences service"); | 46 | m_log.Debug("[AGENT PREFERENCES SERVICE]: Starting agent preferences service"); |
47 | } | 47 | } |
@@ -49,7 +49,7 @@ namespace OpenSim.Services.UserAccountService | |||
49 | public AgentPrefs GetAgentPreferences(UUID principalID) | 49 | public AgentPrefs GetAgentPreferences(UUID principalID) |
50 | { | 50 | { |
51 | AgentPreferencesData d = m_Database.GetPrefs(principalID); | 51 | AgentPreferencesData d = m_Database.GetPrefs(principalID); |
52 | AgentPrefs prefs = (d == null) ? new AgentPrefs(principalID) : new AgentPrefs(d.Data); | 52 | AgentPrefs prefs = (d == null) ? null : new AgentPrefs(d.Data); |
53 | return prefs; | 53 | return prefs; |
54 | } | 54 | } |
55 | 55 | ||