Avoid NullPointerException, don't spam STM with thought operations.