Fix a nullref when compiling non-LSL scripts
parent
b45ac2bf8e
commit
f17732346e
|
@ -644,6 +644,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
sfs.Close();
|
sfs.Close();
|
||||||
|
|
||||||
string posmap = String.Empty;
|
string posmap = String.Empty;
|
||||||
|
if (m_positionMap != null)
|
||||||
|
{
|
||||||
foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap)
|
foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap)
|
||||||
{
|
{
|
||||||
KeyValuePair<int, int> k = kvp.Key;
|
KeyValuePair<int, int> k = kvp.Key;
|
||||||
|
@ -651,6 +653,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
posmap += String.Format("{0},{1},{2},{3}\n",
|
posmap += String.Format("{0},{1},{2},{3}\n",
|
||||||
k.Key, k.Value, v.Key, v.Value);
|
k.Key, k.Value, v.Key, v.Value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buf = enc.GetBytes(posmap);
|
buf = enc.GetBytes(posmap);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue