Add subSPS pre-active check in CheckActiveSPS
Merge pull request #1599 from HaiboZhu/Debug_Add_subSPS_check

Add subSPS pre-active check in CheckActiveSPS
Merge remote-tracking branch 'upstream/master' into travis.osx