#vulnerable code 
                             public RiotApiException getException() {
		if (!isFailed()) {
			return null;
		}
		return exception;
	} 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                             public RiotApiException getException() {
		return exception;
	}