Revert "Revert "Fix a possible nullref caused by accessing m_data rather than Data""

Needed after all

This reverts commit 26094c21fe.
0.8.2-post-fixes
Melanie Thielker 2015-08-23 17:48:48 +02:00
parent c4ea4ea000
commit a9beee7050
1 changed files with 4 additions and 4 deletions

View File

@ -764,10 +764,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
public void Add(object o)
{
object[] tmp;
tmp = new object[m_data.Length + 1];
m_data.CopyTo(tmp, 0);
tmp[m_data.Length] = o;
m_data = tmp;
tmp = new object[Data.Length + 1];
Data.CopyTo(tmp, 0);
tmp[Data.Length] = o; // Since this is tmp.Length - 1
Data = tmp;
}
public bool Contains(object o)