Attempt to call function 'get_node' in base 'null instance' on a null instance

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ghost#1

Attempt to call function ‘get_node’ in base ‘null instance’ on a null instance

I was trying to run the shop scene but this error auhh.
can’t fix it

solution plz TwT

This is the problem code

A screenshot of the node you’re calling in the scene tree would help also. This error means that it can’t find the node(‘Panel’ +str(item+1) its null and you are trying to call get node(‘Button’) on a null instance.

Asthmar | 2022-09-03 00:57

I took the source code from this youtube playlist

Ghost#1 | 2022-09-03 17:01

:bust_in_silhouette: Reply From: SteveSmith

The error is caused because the node(‘Panel’ +str(item+1)) doesn’t exist. and you are trying to call a method on it.