databrary / datavyu

Desktop video coding/annotation tool
http://datavyu.org/
GNU General Public License v3.0
26 stars 18 forks source link

Clock Timer executive service crash because of NullPointerException on player periodic sync #390

Closed TheoWolf closed 3 years ago

TheoWolf commented 3 years ago

The periodic sync thread crash when loading a video or opf file, because the player is not initialized when the periodic sync tries to get the player's current time, it throws a NullPointerException and stops the thread execution. To fix this we need to wrap all clock listeners implementations that are called from the executive service scheduler in a try-catch and register the clock listener after the player is created.