I think that you will need to give us some more information before we can point you in the right direction. The only thing that I can safely say is that something was null that shouldn't have been. Have you debugged the application to see what line fails?
Whose rules are you playing by? This tiny ad doesn't respect those rules: