Program: 58370
Project: 58370
Buggy source:
@Override public void unregisterEventListeners(){
  super.unregisterEventListeners();
  if (compareGroupsEventListener != null) {
    eventPublisher.removeListener(compareGroupsEventListener);
    compareGroupsEventListener=null;
  }
  if (duplicateSetBarItemEventListener != null) {
    eventPublisher.removeListener(duplicateSetBarItemEventListener);
    duplicateSetBarItemEventListener=null;
  }
  if (selectionUpdateListener != null) {
    eventPublisher.removeListener(selectionUpdateListener);
    selectionUpdateListener=null;
  }
  if (adjustPValueOfSetEventListener != null) {
    eventPublisher.removeListener(adjustPValueOfSetEventListener);
    adjustPValueOfSetEventListener=null;
  }
  if (selectionCommandListener != null) {
    eventPublisher.removeListener(selectionCommandListener);
    selectionCommandListener=null;
  }
  if (replaceContentVAListener != null) {
    eventPublisher.removeListener(replaceContentVAListener);
    replaceContentVAListener=null;
  }
  if (useSortingListener != null) {
    eventPublisher.removeListener(useSortingListener);
    useSortingListener=null;
  }
  if (useZoomListener != null) {
    eventPublisher.removeListener(useZoomListener);
    useZoomListener=null;
  }
  if (useBandBundlingListener != null) {
    eventPublisher.removeListener(useBandBundlingListener);
    useBandBundlingListener=null;
  }
  if (newContentGroupInfoEventListener != null) {
    eventPublisher.removeListener(newContentGroupInfoEventListener);
    newContentGroupInfoEventListener=null;
  }
  if (createSelectionTypesListener != null) {
    eventPublisher.removeListener(createSelectionTypesListener);
    createSelectionTypesListener=null;
  }
  if (clearSelectionsListener != null) {
    eventPublisher.removeListener(clearSelectionsListener);
    clearSelectionsListener=null;
  }
}

Fixed version (ground truth):
@Override public void unregisterEventListeners(){
  super.unregisterEventListeners();
  if (compareGroupsEventListener != null) {
    eventPublisher.removeListener(compareGroupsEventListener);
    compareGroupsEventListener=null;
  }
  if (duplicateSetBarItemEventListener != null) {
    eventPublisher.removeListener(duplicateSetBarItemEventListener);
    duplicateSetBarItemEventListener=null;
  }
  if (selectionUpdateListener != null) {
    eventPublisher.removeListener(selectionUpdateListener);
    selectionUpdateListener=null;
  }
  if (adjustPValueOfSetEventListener != null) {
    eventPublisher.removeListener(adjustPValueOfSetEventListener);
    adjustPValueOfSetEventListener=null;
  }
  if (selectionCommandListener != null) {
    eventPublisher.removeListener(selectionCommandListener);
    selectionCommandListener=null;
  }
  if (replaceContentVAListener != null) {
    eventPublisher.removeListener(replaceContentVAListener);
    replaceContentVAListener=null;
  }
  if (useSortingListener != null) {
    eventPublisher.removeListener(useSortingListener);
    useSortingListener=null;
  }
  if (useZoomListener != null) {
    eventPublisher.removeListener(useZoomListener);
    useZoomListener=null;
  }
  if (useBandBundlingListener != null) {
    eventPublisher.removeListener(useBandBundlingListener);
    useBandBundlingListener=null;
  }
  if (newContentGroupInfoEventListener != null) {
    eventPublisher.removeListener(newContentGroupInfoEventListener);
    newContentGroupInfoEventListener=null;
  }
  if (createSelectionTypesListener != null) {
    eventPublisher.removeListener(createSelectionTypesListener);
    createSelectionTypesListener=null;
  }
  if (clearSelectionsListener != null) {
    eventPublisher.removeListener(clearSelectionsListener);
    clearSelectionsListener=null;
  }
  if (hideHeatMapElementsEventListener != null) {
    eventPublisher.removeListener(hideHeatMapElementsEventListener);
    hideHeatMapElementsEventListener=null;
  }
}