Avoid NullPointException.