Use ToString() on uuids returned in PGSQLUserProfilesData.GetUserImageAssets(). These are Guids rather than strings so casting to string generates a casting exception.
Relates to http://opensimulator.org/mantis/view.php?id=7398sedebug
parent
02f2352ad5
commit
9363d4c784
|
@ -814,7 +814,7 @@ namespace OpenSim.Data.PGSQL
|
|||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
data.Add(new OSDString((string)reader["snapshotuuid"]));
|
||||
data.Add(new OSDString(reader["snapshotuuid"].ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -833,7 +833,7 @@ namespace OpenSim.Data.PGSQL
|
|||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
data.Add(new OSDString((string)reader["snapshotuuid"]));
|
||||
data.Add(new OSDString(reader["snapshotuuid"].ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -854,8 +854,8 @@ namespace OpenSim.Data.PGSQL
|
|||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
data.Add(new OSDString((string)reader["profileImage"]));
|
||||
data.Add(new OSDString((string)reader["profileFirstImage"]));
|
||||
data.Add(new OSDString(reader["profileImage"].ToString()));
|
||||
data.Add(new OSDString(reader["profileFirstImage"].ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -864,7 +864,7 @@ namespace OpenSim.Data.PGSQL
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Error("[PROFILES_DATA]: GetAvatarNotes exception ", e);
|
||||
m_log.Error("[PROFILES_DATA]: GetUserImageAssets exception ", e);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
Loading…
Reference in New Issue