Cannot read properties of null (reading 'getContext')
when i work on pattern lock on canvas getting the error.i connect the first two dots its not pblm when i connect the third dots.it get error.
Thanks in advance
Cannot read properties of null (reading 'getContext')
when i work on pattern lock on canvas getting the error.i connect the first two dots its not pblm when i connect the third dots.it get error.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Feb 10, 2023, 4:55 AM
Hello Vinoth,
You need to check if the object is null before trying to get the value from the third dot(.).
Thanks