         editor.setCursorBufferPosition([point.row, line.length - 1])
 
         editorData = @_getEditorData(editor)
+        if not editorData?
+            @_initEditor(editor)
 
         line = editor.lineTextForBufferRow(point.row)
         # correct range to end of line

        assetDirectory = @_getAssetDirectoryForEditor(editor)
        if not assetDirectory?
            assetDirectory = @_initAssetDirectory(editor)

        dialog = new CodeAnnotationNameDialog()
        dialog.attach().onSubmit (name) =>

            Utils.createFile([assetDirectoryPath, CodeAnnotations.ASSET_NAMES_FILE], "{}")
            @assetDirectories.push(assetDirectory)
            @assetManagers[assetDirectoryPath] = new AssetManager(assetDirectoryPath)
        return assetDirectory

    # get the name of the codeAnnotation at the given point
