ccc2.3.2 android原生运行报错 E/jswrapper: ERROR: Uncaught TypeError: Cannot read property 'setRenderSubHandle' of null, location: jsb-adapter/jsb-engine.js:0:0,

jswrapper: ERROR: Uncaught TypeError: Cannot read property ‘setRenderSubHandle’ of null, location: jsb-adapter/jsb-engine.js:0:0
STACK:
[0]_createGraphics@jsb-adapter/jsb-engine.js:582
[1]_activateMaterial@src/cocos2d-jsb.js:20867
[2]set@src/cocos2d-jsb.js:20774
[3]t.init@src/project.js:3296
[4]anonymous@src/project.js:6902
[5]e.autoLoadRes@src/project.js:6871
[6]anonymous@src/project.js:6901
[7]a@src/project.js:5418
[8]anonymous@src/cocos2d-jsb.js:28146
[9]anonymous@src/cocos2d-jsb.js:28040
[10]anonymous@src/cocos2d-jsb.js:36846
[11]fireTimeout@jsb-adapter/jsb-builtin.js:2191
[12]tick@jsb-adapter/jsb-builtin.js:2148

查到是动态改变mask的type和图片引起的 如下代码就会报错
this.mask.type = cc.Mask.Type.IMAGE_STENCIL;
this.mask.spriteFrame = this.distNode.getComponent(cc.Sprite).spriteFrame

哥,这个问题怎么解决的,我也遇到了 版本2.44

下一帧重置试试,如:
this.scheduleOnce(() => {

        xxnode.getComponent(cc.Mask).type = xx;

    });

+1遇到了