sskodje / wpfchrometabs-mvvm

A tab control based on WPF chrome tabs, modified to work with the MVVM pattern
MIT License
256 stars 60 forks source link

Changing AddTabCommand results in null pointer exception #33

Closed frankdekker closed 3 years ago

frankdekker commented 3 years ago

When setting a bound AddTabCommand to null, a null pointer exception occurs. This PR should fix that.

In version: 1.3.4

Reproduction: 1) create chrome tab control 2) create a ICommand command in a view model 3) bind AddTabCommand to that command 4) set the ICommand to null in the view model 5) Error is triggered

frankdekker commented 3 years ago

@sskodje Hi, could you look at this PR? Would be great if this could be merged as it's blocking for me now.

sskodje commented 3 years ago

Sorry, i had forgotten about it! I'll do it right away.

frankdekker commented 3 years ago

Thanks!