Explorar o código

Lowering number of catched NPEs.

_DS_ %!s(int64=15) %!d(string=hai) anos
pai
achega
c3aaf84112

+ 0 - 5
L2_GameServer/java/com/l2jserver/gameserver/instancemanager/MailManager.java

@@ -192,7 +192,6 @@ public class MailManager
 			con = L2DatabaseFactory.getInstance().getConnection();
 			stmt = Message.getStatement(msg, con);
 			stmt.execute();
-			stmt.close();
 		}
 		catch (SQLException e)
 		{
@@ -310,7 +309,6 @@ public class MailManager
 			stmt.setInt(1, msgId);
 
 			stmt.execute();
-			stmt.close();
 		}
 		catch (SQLException e)
 		{
@@ -344,7 +342,6 @@ public class MailManager
 			stmt.setInt(1, msgId);
 
 			stmt.execute();
-			stmt.close();
 		}
 		catch (SQLException e)
 		{
@@ -378,7 +375,6 @@ public class MailManager
 			stmt.setInt(1, msgId);
 
 			stmt.execute();
-			stmt.close();
 		}
 		catch (SQLException e)
 		{
@@ -412,7 +408,6 @@ public class MailManager
 			stmt.setInt(1, msgId);
 
 			stmt.execute();
-			stmt.close();
 		}
 		catch (SQLException e)
 		{

+ 0 - 3
L2_GameServer/java/com/l2jserver/gameserver/model/itemcontainer/Mail.java

@@ -142,9 +142,6 @@ public class Mail extends ItemContainer
 				else
 					addItem(item);
 			}
-
-			inv.close();
-			statement.close();
 		}
 		catch (Exception e)
 		{