diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UuidGatherer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 93406cb..5a9a5a0 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs | |||
@@ -550,7 +550,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
550 | /// </summary> | 550 | /// </summary> |
551 | private void RecordMaterialAssetUuids(AssetBase materialAsset) | 551 | private void RecordMaterialAssetUuids(AssetBase materialAsset) |
552 | { | 552 | { |
553 | OSDMap mat = (OSDMap)OSDParser.DeserializeLLSDXml(materialAsset.Data); | 553 | OSDMap mat; |
554 | try | ||
555 | { | ||
556 | mat = (OSDMap)OSDParser.DeserializeLLSDXml(materialAsset.Data); | ||
557 | } | ||
558 | catch (Exception e) | ||
559 | { | ||
560 | m_log.WarnFormat("[Materials]: cannot decode material asset {0}: {1}", materialAsset.ID, e.Message); | ||
561 | return; | ||
562 | } | ||
554 | 563 | ||
555 | UUID normMap = mat["NormMap"].AsUUID(); | 564 | UUID normMap = mat["NormMap"].AsUUID(); |
556 | if (normMap != UUID.Zero) | 565 | if (normMap != UUID.Zero) |