weird null fix and added last row now too

This commit is contained in:
Christian 2021-03-02 15:06:31 +01:00
parent 475d1a09fa
commit 52003692fa

View File

@ -40,9 +40,9 @@ public class DataMapperCalls {
Player player = new Player(result.getString(1), result.getString(2)); Player player = new Player(result.getString(1), result.getString(2));
//System.out.println("player dataMapper: " + player.getName() + "\nsteamid: " + player.getSteamID()); //System.out.println("player dataMapper: " + player.getName() + "\nsteamid: " + player.getSteamID());
int i = 3; int i = 3;
while (i < fetchSize) { while (i <= fetchSize) {
String specificTime = result.getString(i); String specificTime = result.getString(i);
if (!specificTime.equals("0.000")) { if (specificTime != null && !specificTime.equals("0.000")) {
String columnLabel = result.getMetaData().getColumnLabel(i); String columnLabel = result.getMetaData().getColumnLabel(i);
if (!allMapBoards.keySet().contains(columnLabel)) { if (!allMapBoards.keySet().contains(columnLabel)) {
allMapBoards.put(columnLabel, new MapBoard(columnLabel)); allMapBoards.put(columnLabel, new MapBoard(columnLabel));