Error received:

Attempt to de-reference a null object

Error is in expression '{!leftToRightMove}' in component <apex:commandButton> in page smagicinteract:campaignsmssendpage: (smagicinteract)


Solution:  It seems that the user who is trying to send SMS through the Campaign doesn't have the Editable access to the Mobile phone field of either the Lead or the Contact object.


To enable this, you need to follow the below steps:

  • Go to Setup -> Administration setup -> Security controls -> Field Accessibility
  • Select both Lead and Contact object one after the other and check the accessibility for the mobile phone field, it should be "Editable".

Feel free to revert with your queries