ICS: fix potential NPE