Adding this to the top of domain_xmlsitemap_query_xmlsitemap_generate_alter fixes the issue.

  if (is_object($sitemap)) {
    if (!isset($sitemap->context['domain'])) {
      return;
    }
  }

Comments

dave reid’s picture

Status: Active » Fixed

Ah thanks. I forgot to commit the changes to the 6.x-1.x branch of domain_xmlsitemap late last night. No more late night coding for me (we'll see how long that lasts).
http://drupal.org/cvs?commit=414338

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.