Skip to content

Commit 3a14cc3

Browse files
committed
Changing AddTabCommand results in null pointer exception
1 parent 08a618e commit 3a14cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChromeTabs/ChromeTabControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static void AddTabCommandPropertyChanged(DependencyObject d, DependencyP
105105
}
106106
if (e.OldValue != null)
107107
{
108-
ICommand command = (ICommand)e.NewValue;
108+
ICommand command = (ICommand)e.OldValue;
109109
command.CanExecuteChanged -= ct.Command_CanExecuteChanged;
110110
}
111111
}

0 commit comments

Comments
 (0)