diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs index 7d9cf75c85..eb0ba043ce 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs @@ -234,9 +234,9 @@ namespace OpenSim.Framework.Data.SQLite /// A class containing item information public InventoryItemBase getInventoryItem(LLUUID item) { - DataRows[] rows = ds.Tables["inventoryitems"].Find(item); - if (rows.Length == 1) - return this.buildItem(rows[0]); + DataRow row = ds.Tables["inventoryitems"].Rows.Find(item); + if (row != null) + return this.buildItem(row); else return null; }