Program: 35355
Project: 35355
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getOrgUnitsTreeGrid().setTreeGridEventHandler(new TreeGridEventHandler<OrgUnitDTO>(){
    @Override public void onRowClickEvent(    final OrgUnitDTO rowElement){
      eventBus.navigateRequest(Page.ORGUNIT_DASHBOARD.requestWith(RequestParameter.ID,rowElement.getId()));
    }
  }
);
  if (auth().getSecondaryOrgUnitIds().isEmpty()) {
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().setVisible(false);
  }
 else {
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().setValue(true);
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().addListener(Events.Change,new Listener<BaseEvent>(){
      @Override public void handleEvent(      BaseEvent event){
        loadReminders();
        loadMonitoredPoints();
        loadContacts();
        loadProjects(true);
        loadOrgUnits();
      }
    }
);
  }
  view.getProjectsList().init(RefreshMode.ON_FIRST_TIME,LoadingMode.CHUNK);
  view.setReminderOrMonitoredPointHandler(new ReminderOrMonitoredPointHandler(){
    @Override public void onLabelClickEvent(    Integer projectId){
      Profiler.INSTANCE.startScenario(Scenario.OPEN_PROJECT);
      eventBus.navigateRequest(Page.PROJECT_DASHBOARD.requestWith(RequestParameter.ID,projectId));
    }
  }
);
  eventBus.addHandler(OfflineEvent.getType(),new OfflineHandler(){
    @Override public void handleEvent(    OfflineEvent event){
      initializeMenuButtons(event.getState());
    }
  }
);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getOrgUnitsTreeGrid().setTreeGridEventHandler(new TreeGridEventHandler<OrgUnitDTO>(){
    @Override public void onRowClickEvent(    final OrgUnitDTO rowElement){
      eventBus.navigateRequest(Page.ORGUNIT_DASHBOARD.requestWith(RequestParameter.ID,rowElement.getId()));
    }
  }
);
  if (auth().getSecondaryOrgUnitIds().isEmpty()) {
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().setVisible(false);
  }
 else {
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().setValue(true);
    view.getOrgUnitsTreeGrid().getDisplayOnlyMainOrgUnitCheckbox().addListener(Events.Change,new Listener<BaseEvent>(){
      @Override public void handleEvent(      BaseEvent event){
        loadReminders();
        loadMonitoredPoints();
        loadContacts();
        loadProjects(true);
        loadOrgUnits();
      }
    }
);
  }
  view.getProjectsList().init(RefreshMode.ON_FIRST_TIME,LoadingMode.CHUNK);
  view.setReminderOrMonitoredPointHandler(new ReminderOrMonitoredPointHandler(){
    @Override public void onLabelClickEvent(    Integer projectId){
      Profiler.INSTANCE.startScenario(Scenario.OPEN_PROJECT);
      eventBus.navigateRequest(Page.PROJECT_DASHBOARD.requestWith(RequestParameter.ID,projectId));
    }
  }
);
  eventBus.addHandler(OfflineEvent.getType(),new OfflineHandler(){
    @Override public void handleEvent(    OfflineEvent event){
      initializeMenuButtons(event.getState());
      boolean enableContact=true;
      if (ApplicationState.OFFLINE == event.getState()) {
        view.getContactsList().getView().clearContacts();
        view.getContactsList().getView().refreshToolbar();
        enableContact=false;
      }
 else {
        loadContacts();
      }
      view.getContactsList().getView().getAddButton().setEnabled(enableContact);
      view.getContactsList().getView().getExportButton().setEnabled(enableContact);
      view.getContactsList().getView().getImportButton().setEnabled(enableContact);
    }
  }
);
}