diff options
Diffstat (limited to 'OpenSim/Region/UserStatistics/Sessions_Report.cs')
-rw-r--r-- | OpenSim/Region/UserStatistics/Sessions_Report.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/OpenSim/Region/UserStatistics/Sessions_Report.cs b/OpenSim/Region/UserStatistics/Sessions_Report.cs index ea327be..7a1c5b4 100644 --- a/OpenSim/Region/UserStatistics/Sessions_Report.cs +++ b/OpenSim/Region/UserStatistics/Sessions_Report.cs | |||
@@ -53,27 +53,31 @@ namespace OpenSim.Region.UserStatistics | |||
53 | List<SessionList> lstSessions = new List<SessionList>(); | 53 | List<SessionList> lstSessions = new List<SessionList>(); |
54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; | 54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; |
55 | 55 | ||
56 | |||
56 | string puserUUID = string.Empty; | 57 | string puserUUID = string.Empty; |
57 | string clientVersionString = string.Empty; | 58 | string clientVersionString = string.Empty; |
58 | int queryparams = 0; | 59 | int queryparams = 0; |
59 | 60 | ||
60 | if (requestvars.ContainsKey("UserID")) | 61 | if (requestvars != null) |
61 | { | 62 | { |
62 | UUID testUUID = UUID.Zero; | 63 | if (requestvars.ContainsKey("UserID")) |
63 | if (UUID.TryParse(requestvars["UserID"].ToString(), out testUUID)) | ||
64 | { | 64 | { |
65 | puserUUID = requestvars["UserID"].ToString(); | 65 | UUID testUUID = UUID.Zero; |
66 | 66 | if (UUID.TryParse(requestvars["UserID"].ToString(), out testUUID)) | |
67 | { | ||
68 | puserUUID = requestvars["UserID"].ToString(); | ||
69 | |||
70 | } | ||
67 | } | 71 | } |
68 | } | ||
69 | 72 | ||
70 | if (requestvars.ContainsKey("VersionString")) | 73 | if (requestvars.ContainsKey("VersionString")) |
71 | { | 74 | { |
72 | UUID testUUID = UUID.Zero; | 75 | UUID testUUID = UUID.Zero; |
73 | 76 | ||
74 | clientVersionString = requestvars["VersionString"].ToString(); | 77 | clientVersionString = requestvars["VersionString"].ToString(); |
75 | 78 | ||
76 | 79 | ||
80 | } | ||
77 | } | 81 | } |
78 | 82 | ||
79 | lock (dbConn) | 83 | lock (dbConn) |