The list and the account are both not initialized. Thus it will result in a NullPointerException when trying to insert the account. But will still throw a NullPointerException even if account was initialized since List is not.
Look at the order of the code. You are attempting to insert before the Account record has been added to the list.
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.CRT-450 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
pichtri
2 months, 1 week agoIOANABUZ
9 months, 2 weeks agodanielVentura
1 year, 4 months agochucksback
1 year, 7 months ago