try to avoid NPE coming from empty version.