aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 5a9f88e..c9c8639 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2571,7 +2571,7 @@ namespace OpenSim.Region.Framework.Scenes
2571 { 2571 {
2572 AgentPrefs prefs = AgentPreferencesService.GetAgentPreferences(ownerID); 2572 AgentPrefs prefs = AgentPreferencesService.GetAgentPreferences(ownerID);
2573 // Only apply user selected prefs if the user set them 2573 // Only apply user selected prefs if the user set them
2574 if (prefs.PermNextOwner != 0) 2574 if (prefs != null && prefs.PermNextOwner != 0)
2575 { 2575 {
2576 sceneObject.RootPart.GroupMask = (uint)prefs.PermGroup; 2576 sceneObject.RootPart.GroupMask = (uint)prefs.PermGroup;
2577 sceneObject.RootPart.EveryoneMask = (uint)prefs.PermEveryone; 2577 sceneObject.RootPart.EveryoneMask = (uint)prefs.PermEveryone;