fix issue with GetMediaEntry if the face requested wasn't set to a media texture
parent
d4684da8bd
commit
01ff3c9f9f
|
@ -112,7 +112,8 @@ namespace OpenSim.Region.CoreModules.Media.Moap
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO: Really need a proper copy constructor down in libopenmetaverse
|
// 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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue