SOC-3354 | Display error NPE on terminal while deleting space. Fix test failed.