Prevent a null reference exception when reset is pressed on a script
while it's being compiled.
0.6.0-stable
Melanie Thielker 2008-09-03 10:53:25 +00:00
parent e044d83679
commit 0fc55818ca
1 changed files with 2 additions and 0 deletions

View File

@ -571,6 +571,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
public void ResetScript() public void ResetScript()
{ {
if (m_script == null)
return;
bool running = Running; bool running = Running;
RemoveState(); RemoveState();