Button添加ClickEvent方法后,报错。求助

Button添加ClickEvent方法后,在方法中调用其他Node时会报错

比如:
Uncaught TypeError: Cannot set property ‘active’ of null, location:…

active属性是生效了,界面上有效果,
但是不知道为什么会报错。

修改其他的属性也有这个问题。

没有人遇到过这个问题吗?

我想在Button的方法中,调用properties中的属性,出的这个问题

Uncaught TypeError: Cannot set property ‘active’ of null, location

不知道该怎么解决?

你不贴出来,说实在的真不知道说什么

已经解决了~

怎么解决的?