guard against NPE for non-running inputs