mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Fix a nullref in attachment packing
This commit is contained in:
@@ -323,7 +323,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
foreach (string assembly in assemblies)
|
||||
{
|
||||
string fn = Path.GetFileName(assembly);
|
||||
if (fn == String.Empty)
|
||||
continue;
|
||||
|
||||
FileInfo fi = new FileInfo(assembly);
|
||||
|
||||
if (fi == null)
|
||||
continue;
|
||||
|
||||
Byte[] data = new Byte[fi.Length];
|
||||
|
||||
FileStream fs = File.Open(assembly, FileMode.Open, FileAccess.Read);
|
||||
|
||||
Reference in New Issue
Block a user