[misc] Fixed a possible NPE