* Added null root part guard

* Normalized some UUID handling
* Compacted a few Contains/Add into Set
This commit is contained in:
lbsa71
2008-03-14 15:28:34 +00:00
parent 7ab08f2ac4
commit 24aedf52c6
5 changed files with 25 additions and 29 deletions

View File

@@ -123,7 +123,15 @@ namespace OpenSim.Region.Environment.Scenes
public override LLVector3 AbsolutePosition
{
get { return m_rootPart.GroupPosition; }
get
{
if( m_rootPart == null )
{
throw new NullReferenceException(string.Format("Object {0} has no root part.", m_uuid));
}
return m_rootPart.GroupPosition;
}
set
{
LLVector3 val = value;