mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 19:04:52 +01:00
fix NPE when action has no timestamp
This commit is contained in:
parent
83aa1b15f2
commit
2292b82252
@ -260,8 +260,10 @@ public class GpodnetSyncService extends Service {
|
|||||||
GpodnetEpisodeAction mostRecent = mostRecentPlayAction.get(key);
|
GpodnetEpisodeAction mostRecent = mostRecentPlayAction.get(key);
|
||||||
if (mostRecent == null || mostRecent.getTimestamp() == null) {
|
if (mostRecent == null || mostRecent.getTimestamp() == null) {
|
||||||
mostRecentPlayAction.put(key, action);
|
mostRecentPlayAction.put(key, action);
|
||||||
} else if (mostRecent.getTimestamp().before(action.getTimestamp())) {
|
} else if (action.getTimestamp() != null && mostRecent.getTimestamp().before(action.getTimestamp())) {
|
||||||
mostRecentPlayAction.put(key, action);
|
mostRecentPlayAction.put(key, action);
|
||||||
|
} else {
|
||||||
|
Log.d(TAG, "No date information in action, skipping it");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user