region editor: NPE on viewer