Fix a possible nullref caused by accessing m_data rather than Data
parent
662b59af83
commit
20326e1947
|
@ -764,10 +764,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
public void Add(object o)
|
public void Add(object o)
|
||||||
{
|
{
|
||||||
object[] tmp;
|
object[] tmp;
|
||||||
tmp = new object[m_data.Length + 1];
|
tmp = new object[Data.Length + 1];
|
||||||
m_data.CopyTo(tmp, 0);
|
Data.CopyTo(tmp, 0);
|
||||||
tmp[m_data.Length] = o;
|
tmp[Data.Length] = o; // Since this is tmp.Length - 1
|
||||||
m_data = tmp;
|
Data = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Contains(object o)
|
public bool Contains(object o)
|
||||||
|
|
Loading…
Reference in New Issue