check for data

master
Christopher 2020-07-09 00:38:09 +02:00
parent cdb4071483
commit d74469f84e
1 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@ namespace OpenSim.Modules.DataValue.Storage
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
{
_mysqlReader.Read();
if (!_mysqlReader.Read())
return false;
if (_mysqlReader["StorageKey"] != null)
return true;
@ -78,7 +79,8 @@ namespace OpenSim.Modules.DataValue.Storage
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
{
_mysqlReader.Read();
if (!_mysqlReader.Read())
return null;
if (_mysqlReader["StorageData"] != null)
return _mysqlReader["StorageData"].ToString();