‘Style’ is null or not an object
One of our customers has recently been plagued by an error generated by clicking the check messages button in Outlook Web Access 2007. At first glance the problem appeared to be intermittent but after some investigation I spotted that the problem only became apparent when navigating to OWA via the users SharePoint My Site.
The My Inbox Web Part would work fine.
Navigating directly to Outlook Web Access by entering the URL in their Browser would also work fine.
However, when they use a link on their SharePoint My Site to the users OWA URL they get the ’style’ is null or not an object error.
I raised a call with Microsoft about the issue and they have confirmed that it’s a bug in the Exchange 2007. It’s scheduled to be fixed in Service Pack 2. At the time of writing this issue is not documented in their Knowledge Base so I thought I’d post it here.
UPDATE: Microsoft have issued us with a fix
The good news is that we have identified a workaround and wondered whether you could try the following steps please:-
Workaround details
1. on the Exchange 2007 server find the file uglobal.js that is currently being used by OWA.
2. find function hideEm(o) in uglobal.js.
3. change the code as follows:
OLD CODE:
function hideEm(o)
{
o.style.display = "none";
}
NEW CODE:
function hideEm(o)
{
if (o != null && isDf(typeof(o))) o.style.display = "none";
}
4. save modified file
5. restart iis.
6. on the client make sure that all caches are cleared out, so the new uglobal.js is downloaded from OWA server.








