mantis 9135: avoid null ref

This commit is contained in:
UbitUmarov
2024-08-02 03:29:40 +01:00
parent 70fa48280c
commit f1b6d9186e

View File

@@ -541,7 +541,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (texture.IsZero())
return;
if((remoteClient.ViewerFlags & ViewerFlags.TPBR) != 0)
if(remoteClient is not null && (remoteClient.ViewerFlags & ViewerFlags.TPBR) != 0)
{
switch (level)
{