Update Editor.java

Null-check.