#587| fix null pointer exception in sample edit page