diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index c1810871e2..10f4897eb6 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs @@ -247,8 +247,11 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions return true; } CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user); - if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods) - return true; + if(profile != null && profile.UserProfile != null) + { + if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods) + return true; + } return false; }