Fixed issue where the first-ever history item would not be saved in the database

This commit is contained in:
Rohit Awate 2018-02-22 14:44:29 +05:30
parent 35d968a283
commit 43ffac2478

View file

@ -344,6 +344,10 @@ public class HistoryManager {
lastRequestID = RS.getInt("ID");
}
// This condition is observed when the database is empty
if (lastRequestID == -1)
return false;
HashMap<String, String> map;
// Checks for new or modified headers