aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorDiva Canto2015-11-01 11:36:11 -0800
committerDiva Canto2015-11-01 11:38:41 -0800
commitaea86f30a0b39a721778243d3a914fccb20af205 (patch)
tree9a544b98fc701356c271657304aa07d9ec0130e7 /OpenSim/Region/CoreModules
parentMerge branch 'master' into avinationmerge (diff)
downloadopensim-SC-aea86f30a0b39a721778243d3a914fccb20af205.zip
opensim-SC-aea86f30a0b39a721778243d3a914fccb20af205.tar.gz
opensim-SC-aea86f30a0b39a721778243d3a914fccb20af205.tar.bz2
opensim-SC-aea86f30a0b39a721778243d3a914fccb20af205.tar.xz
Don't crash the sim if the map image is null.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
index 5365b49..ef0eec5 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
58 { 58 {
59 private static readonly ILog m_log = 59 private static readonly ILog m_log =
60 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 60 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
61 private static string LogHeader = "[MAP IMAGE SERVICE MODULE]"; 61 private static string LogHeader = "[MAP IMAGE SERVICE MODULE]:";
62 62
63 private bool m_enabled = false; 63 private bool m_enabled = false;
64 private IMapImageService m_MapService; 64 private IMapImageService m_MapService;
@@ -204,6 +204,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
204 204
205 public void UploadMapTile(IScene scene, Bitmap mapTile) 205 public void UploadMapTile(IScene scene, Bitmap mapTile)
206 { 206 {
207 if (mapTile == null)
208 {
209 m_log.WarnFormat("{0} Cannot upload null image", LogHeader);
210 return;
211 }
212
207 m_log.DebugFormat("{0} Upload maptile for {1}", LogHeader, scene.Name); 213 m_log.DebugFormat("{0} Upload maptile for {1}", LogHeader, scene.Name);
208 214
209 // mapTile.Save( // DEBUG DEBUG 215 // mapTile.Save( // DEBUG DEBUG