mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Guard against a potential nullref
This commit is contained in:
@@ -470,7 +470,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (m_parentID == 0)
|
||||
{
|
||||
SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID);
|
||||
m_parentPosition = part.AbsolutePosition;
|
||||
if (part != null)
|
||||
m_parentPosition = part.AbsolutePosition;
|
||||
}
|
||||
|
||||
return m_parentPosition + m_pos;
|
||||
|
||||
Reference in New Issue
Block a user