catch (SQLException e) {\r
e.printStackTrace();\r
}\r
+ catch (AbstractMethodError e) {\r
+ DatabaseConnection.connect();\r
+ \r
+ if(con == null) {\r
+ throw new RuntimeException("MySQL server has gone away. Attempted reconnection failed.");\r
+ }\r
+ \r
+ return con;\r
+ }\r
return con;\r
}\r
\r