Closed LeoGanz closed 6 years ago
For clarification:
Did this happen the first time after you initialised the client/ deleted its database? Or after you restarted it without having written someone or having recieved messages before ?
Because my guess is that the Client tries to sort the List with all the messages from the database and throws a NullPointerException
because there are no messages in the list.
Wasn't able to reproduce error, there issue is put on hold until someone else recieves this error again.
Client freezes after approx. 15% of the progressbar is filled.
client-20180408_124510.log
Exception:
java.lang.NullPointerException at jaims_development_studio.jaims.client.database.ReadFromDatabase.lambda$0(ReadFromDatabase.java:246) at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) at java.util.TimSort.sort(TimSort.java:220) at java.util.Arrays.sort(Arrays.java:1512) at java.util.ArrayList.sort(ArrayList.java:1462) at jaims_development_studio.jaims.client.database.ReadFromDatabase.getContactMessages(ReadFromDatabase.java:244) at jaims_development_studio.jaims.client.database.DatabaseConnection.getContactMessages(DatabaseConnection.java:83) at jaims_development_studio.jaims.client.logic.ClientMain.getMessageList(ClientMain.java:127) at jaims_development_studio.jaims.client.gui.GUIMain.getMessageList(GUIMain.java:365) at jaims_development_studio.jaims.client.gui.messagePanels.ManageMessagePanels.createMessageLists(ManageMessagePanels.java:38) at jaims_development_studio.jaims.client.gui.GUIMain.loginSuccessful(GUIMain.java:222) at jaims_development_studio.jaims.client.logic.ClientMain.loginSuccesful(ClientMain.java:165) at jaims_development_studio.jaims.client.networking.ListenForInput.handleSendable(ListenForInput.java:167) at jaims_development_studio.jaims.client.networking.ListenForInput.readConnection(ListenForInput.java:61) at jaims_development_studio.jaims.client.networking.ListenForInput.run(ListenForInput.java:195) at java.lang.Thread.run(Thread.java:748)