aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index a4801ad..bfa9763 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -323,7 +323,14 @@ namespace OpenSim.Region.Environment.Scenes
323 foreach (string assembly in assemblies) 323 foreach (string assembly in assemblies)
324 { 324 {
325 string fn = Path.GetFileName(assembly); 325 string fn = Path.GetFileName(assembly);
326 if (fn == String.Empty)
327 continue;
328
326 FileInfo fi = new FileInfo(assembly); 329 FileInfo fi = new FileInfo(assembly);
330
331 if (fi == null)
332 continue;
333
327 Byte[] data = new Byte[fi.Length]; 334 Byte[] data = new Byte[fi.Length];
328 335
329 FileStream fs = File.Open(assembly, FileMode.Open, FileAccess.Read); 336 FileStream fs = File.Open(assembly, FileMode.Open, FileAccess.Read);