diff options
author | UbitUmarov | 2016-08-18 14:35:28 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-18 14:35:28 +0100 |
commit | 9c75f8a57e205cc33b0cbf97745ab7ead46da399 (patch) | |
tree | 584891db1713c219b943694ad94be1b1855e2f04 /OpenSim/Server/Handlers/GridUser | |
parent | allow cap HomeLocation to be disabled setting Cap_HomeLocation = "" (diff) | |
download | opensim-SC-9c75f8a57e205cc33b0cbf97745ab7ead46da399.zip opensim-SC-9c75f8a57e205cc33b0cbf97745ab7ead46da399.tar.gz opensim-SC-9c75f8a57e205cc33b0cbf97745ab7ead46da399.tar.bz2 opensim-SC-9c75f8a57e205cc33b0cbf97745ab7ead46da399.tar.xz |
avoid NULL refs
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs index b63b594..8806c2c 100644 --- a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs +++ b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | |||
@@ -228,6 +228,8 @@ namespace OpenSim.Server.Handlers.GridUser | |||
228 | int i = 0; | 228 | int i = 0; |
229 | foreach (GridUserInfo pinfo in pinfos) | 229 | foreach (GridUserInfo pinfo in pinfos) |
230 | { | 230 | { |
231 | if(pinfo == null) | ||
232 | continue; | ||
231 | Dictionary<string, object> rinfoDict = pinfo.ToKeyValuePairs(); | 233 | Dictionary<string, object> rinfoDict = pinfo.ToKeyValuePairs(); |
232 | result["griduser" + i] = rinfoDict; | 234 | result["griduser" + i] = rinfoDict; |
233 | i++; | 235 | i++; |