Uncaught TypeError: Cannot read property 'getComponent' of null 一直出现这个提示为什么?

代码是这样 var t = cc.find(“button1”).getComponent(cc.Label);

一运行就报错 button1这个肯定是有的