I'm getting an error on inserting Opportunities using the Data Loader: an apex trigger on opportunity insert is trying to dereference a null pointer. In trying to find a solution to this problem, I'd like to have a look at the code in the the opportunity triggers in our org. Unfortunately, most of these are part of a managed package (non-profit service pack contacts & organizations) and I get a "managed code is hidden" message when I try to open them.
Is there anywhere I can go to look up the code in these triggers? I haven't been able to find it documented anywhere.
Or, is this a problem anyone else has had? Is there some common piece of data my uploads might be missing to cause this error? I've verified that the account IDs in my upload are valid.
Update: I think I've tracked down the problem to a bug in the Opportunity Contact Roles class that is de-referencing a null Contact when bulk uploading opportunities to non-1to1 accounts in an org using the one-to-one contact-object model (we are one-to-one but have some organizations without contacts for various reasons). I feel like this is a bug on an edge case scenario and the code should handle the case of no contacts, but I suppose one might argue that having accounts with no contacts in a one-to-one org shouldn't be supported... I wonder if I should submit an issue in Github?