fix issue with GetMediaEntry if the face requested wasn't set to a media texture

prebuild-update
Justin Clark-Casey (justincc) 2010-07-12 21:43:36 +01:00
parent 43f480864b
commit d1a879927c
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ namespace OpenSim.Region.CoreModules.Media.Moap
else
{
// TODO: Really need a proper copy constructor down in libopenmetaverse
return MediaEntry.FromOSD(media[face].GetOSD());
MediaEntry me = media[face];
return (null == me ? null : MediaEntry.FromOSD(me.GetOSD()));
}
}