From ba39d9f0e65bc43a891871fcddae997ff2e85b31 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 2 Feb 2011 03:10:39 +0100 Subject: Squash a nullref --- OpenSim/Region/Framework/Scenes/Scene.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index c65a82b..2424194 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2555,6 +2555,8 @@ namespace OpenSim.Region.Framework.Scenes { */ UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user); + if (uac == null) + return 0; return uac.UserFlags; //} } -- cgit v1.1