catch a null case in the convenience RegionID property
							parent
							
								
									30a77b5b9f
								
							
						
					
					
						commit
						c38b811f5d
					
				|  | @ -923,7 +923,13 @@ namespace OpenSim.Region.Environment.Scenes | ||||||
|         [XmlIgnore] |         [XmlIgnore] | ||||||
|         public virtual LLUUID RegionID |         public virtual LLUUID RegionID | ||||||
|         { |         { | ||||||
|             get { return ParentGroup.Scene.RegionInfo.RegionID; } |             get  | ||||||
|  |             {  | ||||||
|  |                 if (ParentGroup != null && ParentGroup.Scene != null) | ||||||
|  |                     return ParentGroup.Scene.RegionInfo.RegionID; | ||||||
|  |                 else | ||||||
|  |                     return LLUUID.Zero; | ||||||
|  |             } | ||||||
|             set {} // read only |             set {} // read only | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Sean Dague
						Sean Dague