diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | 8 |
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 860a526..08d6bdd 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
57 | { | 57 | { |
58 | private static readonly ILog m_log = | 58 | private static readonly ILog m_log = |
59 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 59 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
60 | private static string LogHeader = "[MAP IMAGE SERVICE MODULE]"; | 60 | private static string LogHeader = "[MAP IMAGE SERVICE MODULE]:"; |
61 | 61 | ||
62 | private bool m_enabled = false; | 62 | private bool m_enabled = false; |
63 | private IMapImageService m_MapService; | 63 | 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 |