Fix a nullref when compiling non-LSL scripts

0.6.5-rc1
Melanie Thielker 2009-04-02 16:27:16 +00:00
parent b45ac2bf8e
commit f17732346e
1 changed files with 8 additions and 5 deletions

View File

@ -644,12 +644,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
sfs.Close(); sfs.Close();
string posmap = String.Empty; string posmap = String.Empty;
foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap) if (m_positionMap != null)
{ {
KeyValuePair<int, int> k = kvp.Key; foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap)
KeyValuePair<int, int> v = kvp.Value; {
posmap += String.Format("{0},{1},{2},{3}\n", KeyValuePair<int, int> k = kvp.Key;
k.Key, k.Value, v.Key, v.Value); KeyValuePair<int, int> v = kvp.Value;
posmap += String.Format("{0},{1},{2},{3}\n",
k.Key, k.Value, v.Key, v.Value);
}
} }
buf = enc.GetBytes(posmap); buf = enc.GetBytes(posmap);