Fix initialization NPE.

This commit is contained in:
Conrad S 2016-04-08 18:48:16 -04:00
parent 8a2efa2f0b
commit 05b31725a8

View File

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