Fixed a NPE

This commit is contained in:
Akarshit Wal
2015-07-03 13:43:45 +05:30
parent 41b0bf0252
commit 3e00f5d74e

View File

@@ -156,9 +156,11 @@ public class ContributionManagerDialog {
@Override
public void stateChanged(ChangeEvent e) {
// When the tab is changed update status to the current selected panel
getActiveTab().contributionListPanel
.setSelectedPanel(getActiveTab().contributionListPanel
.getSelectedPanel());
ContributionPanel currentPanel = getActiveTab().contributionListPanel
.getSelectedPanel();
if (currentPanel != null) {
getActiveTab().contributionListPanel.setSelectedPanel(currentPanel);
}
}
});