What change In the ...
 
Notifications
Clear all

What change In the controller will fix the error?

1 Posts
1 Users
0 Likes
120 Views
(@mcgruenathaniel)
Noble Member
Joined: 2 years ago
Posts: 732
Topic starter  

A Visualforce Page throws an Attempt to dereference a null object error for a Contact .

What change In the controller will fix the error?

  • A . Declare a static final Contact at the top of the controller.
  • B . Change the setters signature to return a Contact.
  • C . Use a condition in the getter to return a new Contact if it is null.
  • D . Change the getter's signature to be static Contact.

Show Answer Hide Answer

Suggested Answer: C

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: