Edited exception testing for null command