Make sure editor is set before trying to get code.
Merge pull request #9 from rgbkrk/verifyeditor

Make sure editor is set before trying to get code.