Loop on the CAM until the CAM is non-null to prevent a situation where the null CAM is used to call getRegisteredApp, apparenly due to a race condition somewhere
This commit is contained in:
@ -73,7 +73,12 @@ public class WinLauncher {
|
||||
}
|
||||
|
||||
// then wait for the update manager
|
||||
ClientAppManager cam = ctx.clientAppManager();
|
||||
|
||||
ClientAppManager cam;
|
||||
while ((cam = ctx.clientAppManager()) == null) {
|
||||
sleep(1000);
|
||||
}
|
||||
|
||||
UpdateManager um;
|
||||
while ((um = (UpdateManager) cam.getRegisteredApp(UpdateManager.APP_NAME)) == null) {
|
||||
sleep(1000);
|
||||
|
Reference in New Issue
Block a user