CM - fix NPE related to restart button

This commit is contained in:
Jakub Valtar
2015-09-28 17:15:31 -04:00
parent f89390ce2e
commit 3a33c4bdfb
2 changed files with 11 additions and 5 deletions
@@ -46,11 +46,11 @@ public class ContributionTab extends JPanel {
Contribution.Filter filter;
JComboBox<String> categoryChooser;
JScrollPane scrollPane;
ListPanel contributionListPanel;
StatusPanel statusPanel;
FilterField filterField;
JButton restartButton;
// TODO: remove or initialize restartButton
//JButton restartButton;
JLabel categoryLabel;
JLabel loaderLabel;
@@ -200,6 +200,9 @@ public class ContributionTab extends JPanel {
});
filterField = new FilterField();
// TODO: initialize restartButton, whatever it is
// restartButton = ???
}
@@ -164,7 +164,8 @@ class DetailPanel extends JPanel {
}
}
}
listPanel.contributionTab.restartButton.setVisible(toBeRestarted);
// TODO: remove or uncomment if the button was added
//listPanel.contributionTab.restartButton.setVisible(toBeRestarted);
}
}
};
@@ -864,7 +865,8 @@ class DetailPanel extends JPanel {
if (isModeActive) {
updateButton.setEnabled(true);
} else {
listPanel.contributionTab.restartButton.setVisible(true);
// TODO: remove or uncomment if the button was added
//listPanel.contributionTab.restartButton.setVisible(true);
}
}
};
@@ -930,7 +932,8 @@ class DetailPanel extends JPanel {
if (isModeActive) {
updateButton.setEnabled(true);
} else {
contributionTab.restartButton.setVisible(true);
// TODO: remove or uncomment if the button was added
//contributionTab.restartButton.setVisible(true);
}
}
};