Guard against a null ref in the permissions module when a profile
fetch fails.0.6.0-stable
parent
5ed5d0788b
commit
9807a86398
|
@ -247,8 +247,11 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
|
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
|
||||||
if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods)
|
if(profile != null && profile.UserProfile != null)
|
||||||
return true;
|
{
|
||||||
|
if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue