TrackActions: prefer InvalidCastException over NREs
commit43b2e0ccc75d94b983b6a6467be06e49ce14c472
authorAndrés G. Aragoneses <knocte@gmail.com>
Tue, 20 May 2014 11:29:12 +0000 (20 13:29 +0200)
committerAndrés G. Aragoneses <knocte@gmail.com>
Tue, 20 May 2014 11:29:12 +0000 (20 13:29 +0200)
tree7dba09ef66d663ca1e24f44a28901531add86201
parent7c42e7a820f7f75088bf5756468a1e7666a1c8d2
TrackActions: prefer InvalidCastException over NREs

Replace dynamic casts with static casts in a couple of places where
the null-check is not performed before dereferencing the variable.
src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs