Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -136,16 +136,28 @@ namespace Server.Engines.MyRunUO
|
|||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
try{ if ( transact != null ) transact.Rollback(); }
|
||||
try
|
||||
{
|
||||
transact?.Rollback();
|
||||
}
|
||||
catch{}
|
||||
|
||||
try{ if ( connection != null ) connection.Close(); }
|
||||
try
|
||||
{
|
||||
connection?.Close();
|
||||
}
|
||||
catch{}
|
||||
|
||||
try{ if ( connection != null ) connection.Dispose(); }
|
||||
try
|
||||
{
|
||||
connection?.Dispose();
|
||||
}
|
||||
catch{}
|
||||
|
||||
try{ if ( command != null ) command.Dispose(); }
|
||||
try
|
||||
{
|
||||
command?.Dispose();
|
||||
}
|
||||
catch{}
|
||||
|
||||
try{ m_Sync.Close(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue