Our style dictates that we use curly braces for all such statements:

if (_skeletonTrackingOn) {
     _joints = joints;
}

Also, you should probably clear the joints when tracking has been turned off, so:

_joints = _skeletonTrackingOn ? joints : JointVector();