microbit-foundation/cctd-ml-machine

Object is not properly created when new gestures are added

Closed this issue · 0 comments

r59q commented

this results in confidence not being properly defined in time before use, leading to the case where the || {currentConfidence:0, requiredConfidence: 0, isConfident: false} is required to avoid NPE

image

The createGesture method should ensure the object is properly instantiated before use