Fix NPE with deny command