fixed null pointer in project editor