Refs #1746 [Desktop] Synchronize time for desktop client

This commit is contained in:
Konstantin Krivopustov 2013-01-08 06:48:23 +00:00
parent 3e353924fb
commit dbb68674b6

View File

@ -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