Added null reference check for DualTrack class