Having a history of joint injuries is a risk factor for avascular necrosis.