mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Fix NPE stringToDate
This commit is contained in:
parent
12772cb299
commit
f89c732a6b
@ -443,6 +443,8 @@ public final class Emulator {
|
||||
private static String dateToUnixTimestamp(Date date) {
|
||||
String res = "";
|
||||
Date aux = stringToDate("1970-01-01 00:00:00");
|
||||
if(aux == null) return null;
|
||||
|
||||
Timestamp aux1 = dateToTimeStamp(aux);
|
||||
Timestamp aux2 = dateToTimeStamp(date);
|
||||
long difference = aux2.getTime() - aux1.getTime();
|
||||
|
Loading…
Reference in New Issue
Block a user