fix issue with GetMediaEntry if the face requested wasn't set to a media texture
parent
43f480864b
commit
d1a879927c
|
@ -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