Index: Slim/Player/ReplayGain.pm =================================================================== --- Slim/Player/ReplayGain.pm (revision 10331) +++ Slim/Player/ReplayGain.pm (working copy) @@ -125,7 +125,8 @@ } # Check for album and tracknum matches as expected - if ($compare_track->album->id && ($compare_track->album->id == $current_track->album->id) && + if ($compare_track->album && $current_track->album && + $compare_track->album->id && ($compare_track->album->id == $current_track->album->id) && (($current_track->tracknum + $offset) == $compare_track->tracknum)) { return 1;