diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index afb788b8ae..5202bbc8c9 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs @@ -216,7 +216,8 @@ namespace OpenSim.Region.OptionalModules.Materials GetLegacyStoredMaterialsInPart(part); - GetStoredMaterialInFace(part, te.DefaultTexture); + if (te.DefaultTexture != null) + GetStoredMaterialInFace(part, te.DefaultTexture); foreach (Primitive.TextureEntryFace face in te.FaceTextures) {