Skip to content

Commit

Permalink
Fix for reported crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
iiordanov committed Jan 26, 2015
1 parent 195fa42 commit e6a00a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ public void onAttachedToWindow() {
}

private void setWidgetStateAppropriately () {

selected = mainConfigDialog.getCurrentConnection();
if (selected == null) {
dismiss();
}
commandIndex = selected.getAutoXType();
origCommandIndex = selected.getAutoXType();
// Set current selection to the one corresponding to saved setting.
Expand Down

0 comments on commit e6a00a8

Please sign in to comment.