This is due to a Null Pointer Exception when comparing two Workspaces with "equals" which compare the WebPreferneces com.xpn.xwiki.doc.Document of the two workspaces.