null check, not everyone runs with a group module
This commit is contained in:
@@ -1699,8 +1699,13 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
string LastOwnerName;
|
||||
if (land.LandData.IsGroupOwned)
|
||||
{
|
||||
GroupRecord groupRecord = m_groupManager.GetGroupRecord(land.LandData.OwnerID);
|
||||
LastOwnerName = "group " + groupRecord.GroupName;
|
||||
if (m_groupManager is not null)
|
||||
{
|
||||
GroupRecord groupRecord = m_groupManager.GetGroupRecord(land.LandData.OwnerID);
|
||||
LastOwnerName = "group " + groupRecord.GroupName;
|
||||
}
|
||||
else
|
||||
LastOwnerName = "a group";
|
||||
}
|
||||
else
|
||||
LastOwnerName = m_userManager.GetUserName(land.LandData.OwnerID);
|
||||
|
||||
Reference in New Issue
Block a user