Fixed issue where the first-ever history item would not be saved in the database
This commit is contained in:
parent
35d968a283
commit
43ffac2478
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue