Fix initialization NPE.

This commit is contained in:
Conrad S 2016-04-08 18:48:16 -04:00
parent 8a2efa2f0b
commit 05b31725a8
1 changed files with 34 additions and 36 deletions

View File

@ -149,7 +149,7 @@ public class SiegeWeaponRepository extends MinecraftRepository
System.out.println("Siege Repo> Inserting new weapon " + token.UniqueId);
_siegeManager.runAsync(() ->
executeUpdate(INSERT_WEAPON,
executeUpdate(INSERT_WEAPON,
new ColumnInt("uniqueId", token.UniqueId),
new ColumnInt("serverId", _siegeManager.getClansManager().getServerId()),
new ColumnVarChar("location", 30, UtilWorld.locToStr(token.Location)),
@ -196,9 +196,7 @@ public class SiegeWeaponRepository extends MinecraftRepository
@Override
protected void initialize()
{
_siegeManager.runAsync(() ->
executeUpdate(CREATE)
);
executeUpdate(CREATE);
}
@Override