Correct the way of avoiding crash

Bug: 24098561
Change-Id: I38374eaeef0d26b2f3b3963d0e36f77947463e41
1 file changed