aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-08-19 02:41:15 +0100
committerUbitUmarov2016-08-19 02:41:15 +0100
commite62d38a4abe3d940ef4dedb6c30681a8d58cdf47 (patch)
tree9ae99c086d232bcf4d10ea72b27cffb4201f5a1b
parent add cap GroupMemberData (diff)
downloadopensim-SC_OLD-e62d38a4abe3d940ef4dedb6c30681a8d58cdf47.zip
opensim-SC_OLD-e62d38a4abe3d940ef4dedb6c30681a8d58cdf47.tar.gz
opensim-SC_OLD-e62d38a4abe3d940ef4dedb6c30681a8d58cdf47.tar.bz2
opensim-SC_OLD-e62d38a4abe3d940ef4dedb6c30681a8d58cdf47.tar.xz
catch some NULL refs
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index c3305cf..60bfaa5 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -1733,6 +1733,8 @@ namespace OpenSim.Region.ClientStack.Linden
1733 OSDArray osdtitles = new OSDArray(); 1733 OSDArray osdtitles = new OSDArray();
1734 foreach(GroupRolesData grd in roles) 1734 foreach(GroupRolesData grd in roles)
1735 { 1735 {
1736 if(grd.Title == null)
1737 continue;
1736 string title = grd.Title; 1738 string title = grd.Title;
1737 if(i==0) 1739 if(i==0)
1738 defaultPowers = grd.Powers; 1740 defaultPowers = grd.Powers;
@@ -1744,6 +1746,9 @@ namespace OpenSim.Region.ClientStack.Linden
1744 } 1746 }
1745 } 1747 }
1746 1748
1749 if(titles.Count == 0)
1750 break;
1751
1747 OSDMap osdmembers = new OSDMap(); 1752 OSDMap osdmembers = new OSDMap();
1748 foreach(GroupMembersData gmd in members) 1753 foreach(GroupMembersData gmd in members)
1749 { 1754 {
@@ -1752,7 +1757,7 @@ namespace OpenSim.Region.ClientStack.Linden
1752 m["last_login"] = new OSDString(gmd.OnlineStatus); 1757 m["last_login"] = new OSDString(gmd.OnlineStatus);
1753 if(gmd.AgentPowers != defaultPowers) 1758 if(gmd.AgentPowers != defaultPowers)
1754 m["powers"] = new OSDString((gmd.AgentPowers).ToString("X")); 1759 m["powers"] = new OSDString((gmd.AgentPowers).ToString("X"));
1755 if(titles.ContainsKey(gmd.Title) && titles[gmd.Title] != 0) 1760 if(gmd.Title != null && titles.ContainsKey(gmd.Title) && titles[gmd.Title] != 0)
1756 m["title"] = new OSDInteger(titles[gmd.Title]); 1761 m["title"] = new OSDInteger(titles[gmd.Title]);
1757 if(gmd.IsOwner) 1762 if(gmd.IsOwner)
1758 m["owner"] = new OSDString("true"); 1763 m["owner"] = new OSDString("true");