fix an npe

@umop, fix an npe when analyzing