fix NPE when no condition