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
AbhynavAbhynav 

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

Hi,

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?

Thanks,
​Abhinav

 
NagendraNagendra (Salesforce Developers) 
Hi Abhinav,

I suggest you use the browser debugger(https://salesforce.stackexchange.com/questions/36715/how-do-i-start-to-debug-my-own-visualforce-javascript) 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.

Regards,
Nagendra.