Squash a nullref

avinationmerge
Melanie 2011-02-02 03:10:39 +01:00
parent e5ef993f2b
commit ba39d9f0e6
1 changed files with 2 additions and 0 deletions

View File

@ -2555,6 +2555,8 @@ namespace OpenSim.Region.Framework.Scenes
{ {
*/ */
UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user); UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user);
if (uac == null)
return 0;
return uac.UserFlags; return uac.UserFlags;
//} //}
} }