We were assuming the payee was online and the part was in the same scene. When this assumption failed, our part was null. When that happened, we crashed when building the transaciton and trying to get the part.name and part.description.
Now we cycle through all of our scenes on the sim until we find the one with the part.
As a larger OpenSim design note, any SharedRegionModule functions such as this should include the scene in the arguments passed in to the event. Since it does not, we have to do extra work to retrieve information thrown away just before calling our function.
I need to get this fix out over the weekend. I'll ask Brad to review when he returns on Monday, but I'm pulling this in to get the fix out to our partner.
… due to dereferencing null part.
We were assuming the payee was online and the part was in the same scene. When this assumption failed, our part was null. When that happened, we crashed when building the transaciton and trying to get the part.name and part.description.
Now we cycle through all of our scenes on the sim until we find the one with the part.
As a larger OpenSim design note, any SharedRegionModule functions such as this should include the scene in the arguments passed in to the event. Since it does not, we have to do extra work to retrieve information thrown away just before calling our function.