beamer and hyperref on a collision course?

Some of my presentations are written in LaTeX, and more specifically using the beamer document class.

One of the recent versions of the hyperref package (version 2011/04/07 v6.82e) crashes with the beamer document class (development version 3.10), or is it the other way around? Temporary and permanent solutions follows.

Should you get error messages like this one:

! Undefined control sequence.
\hyper@linkurl ...ink \@urlcolor #1\Hy@xspace@end
                                                  \close@pdflink \endgroup

then either upgrade to the latest version of hyperref, version 2011/04/17 v6.82g have been confirmed to get it right, or temporarily add these three commands to your preamble:

\makeatletter
\def\Hy@xspace@end{}
\makeatother