mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
Refs #1746 [Desktop] Synchronize time for desktop client
This commit is contained in:
parent
3e353924fb
commit
dbb68674b6
@ -39,7 +39,9 @@ public class DesktopTimeSource implements TimeSource, ConnectionListener {
|
||||
protected ServerInfoService serverInfo;
|
||||
|
||||
public DesktopTimeSource() {
|
||||
App.getInstance().getConnection().addListener(this);
|
||||
App app = App.getInstance();
|
||||
if (app != null) // can be null in tests
|
||||
app.getConnection().addListener(this);
|
||||
}
|
||||
|
||||
@Inject
|
||||
|
Loading…
Reference in New Issue
Block a user