avoid potencial NullReferenceException
parent
edb3a9596b
commit
f254af29ac
|
@ -317,8 +317,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
comms.DeleteListener(itemID);
|
||||
|
||||
IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>();
|
||||
if (xmlrpc != null)
|
||||
{
|
||||
xmlrpc.DeleteChannels(itemID);
|
||||
xmlrpc.CancelSRDRequests(itemID);
|
||||
}
|
||||
|
||||
// Remove Sensors
|
||||
m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
|
||||
|
|
Loading…
Reference in New Issue