Hello,
I am having an issue with Lab3b. When I run the grading console after finishing the lab I receive a message stating "Attempt to de-reference a null object." I have reviewed the whole lab, tried multiple web servers, and updated the grader but none seem to fix the issue. The other issue is that this lab is difficult to go back and scrap since it is intertwined with many things.
Any help is greatly appreciated!
Np, I got it! When you were doing the steps to add a lead using the API call - that long link in your browser that ends with you giving the lead the first name of "leerg" (first 2 letters of your first name and last 3 letters of the last) - on your first try you added a lead with no name at all. Either you left off the "first_name=leerg" part or you mistyped something and that part didn't work. Either way, you had a lead with no name at all.
A couple of minutes later, you got it fixed and it worked. In fact, you added two more that were correct. But that one with no name at all was still in there. Then our grader app was searching all your leads to make sure you had one in there with "leerg" but the code wasn't expecting to find one with no name at all and it choked! We should have anticipated that possibility and accounted for it but we didn't and that's what was causing the problem. Mystery solved!
So I deleted that one lead, reran the scoring routine and it worked and how you have 10/10 for everything. All good.
Sorry for the hassle and thanks a ton for helping us sort this out. We will fix that in the code so nobody runs into it again!