add try
parent
c171f0e739
commit
8d7a69b962
|
@ -223,7 +223,9 @@ namespace OpenSim.Modules.PathFinding
|
||||||
[ScriptInvocation]
|
[ScriptInvocation]
|
||||||
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID)
|
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID)
|
||||||
{
|
{
|
||||||
SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
|
try
|
||||||
|
{
|
||||||
|
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID);
|
||||||
|
|
||||||
if (_host != null || m_asyncCommands != null)
|
if (_host != null || m_asyncCommands != null)
|
||||||
{
|
{
|
||||||
|
@ -243,6 +245,12 @@ namespace OpenSim.Modules.PathFinding
|
||||||
if (m_asyncCommands == null)
|
if (m_asyncCommands == null)
|
||||||
m_log.ErrorFormat("[" + Name + "]: AsyncCommands is null");
|
m_log.ErrorFormat("[" + Name + "]: AsyncCommands is null");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch(Exception _error)
|
||||||
|
{
|
||||||
|
m_log.Error(_error.Message);
|
||||||
|
m_log.Error(_error.StackTrace);
|
||||||
|
}
|
||||||
|
|
||||||
return UUID.Zero.ToString();
|
return UUID.Zero.ToString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue