1. Fix NullPointerException occurs when group condition not set