getThreadGroup is expected to return null when the thread is terminated. The exit() impl sets threadGroup to null after setting state to TERMINATED creating a race. Checking state before returning the thread group fixes that race.
getThreadGroup is expected to return null when the thread is terminated. The exit() impl sets threadGroup to null after setting state to TERMINATED creating a race. Checking state before returning the thread group fixes that race.

	Change on 2016/07/21 by kstanger <kstanger@google.com>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=128092061

groschovskiy/j2objc,doppllib/j2objc,google/j2objc,doppllib/j2objc,doppllib/j2objc,mirego/j2objc,lukhnos/j2objc,bandcampdotcom/j2objc,lukhnos/j2objc,life-beam/j2objc,life-beam/j2objc,life-beam/j2objc,bandcampdotcom/j2objc,mirego/j2objc,life-beam/j2objc,google/j2objc,lukhnos/j2objc,bandcampdotcom/j2objc,groschovskiy/j2objc,mirego/j2objc,google/j2objc,doppllib/j2objc,lukhnos/j2objc,mirego/j2objc,google/j2objc,doppllib/j2objc,bandcampdotcom/j2objc,groschovskiy/j2objc,groschovskiy/j2objc,lukhnos/j2objc,lukhnos/j2objc,bandcampdotcom/j2objc,life-beam/j2objc,bandcampdotcom/j2objc,groschovskiy/j2objc,mirego/j2objc,google/j2objc,google/j2objc,groschovskiy/j2objc,life-beam/j2objc,doppllib/j2objc,mirego/j2objc