function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Uncaught Action failed: aura:if$controller$handleTheTruth [Cannot read property '$getReference$' of null]


We are facing an error in our lightning component. All seems to be working good but unnecessarily this error pops up.
Suppose I have performed any task from button click in the component, all will run on first time button if I do same thing once again then all the functionality get performed well but it shows error . Problem is not only with button click but also on other events such as onChange of text etc.

Below is the screenshot of the error : 

User-added image
User-added image
User-added image

Can anyone help in this?


NagendraNagendra (Salesforce Developers) 
Hi Abhinav,

I suggest you use the browser debugger( to check for a null value that it looks like you are passing into the Lightning framework from your code. 

Please let us know if this helps.