When state's some property is null, then StateEditor outputs error message. So avoid error and show some help message when state is null.