Uploaded image for project: 'Skin editor'
  1. Skin editor
  2. SKIN-65

Error when opening an empty file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.0
    • 2.0.0
    • None

      Try to open an empty file in the editor. You get this error and you cannot edit the file:

      ERROR	[Ametys.data.ServerComm]	Une erreur est survenue dans le traitement de la réponse serveur (TypeError: Cannot read property 'split' of null)
      	TypeError: Cannot read property 'split' of null
      	    at window.CodeMirror.splitLines (http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:5820:37)
          at window.CodeMirror.createObj.setValue (http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:4996:31)
          at null.setValue (http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:5217:40)
          at Ext.define.setValue (http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:166:21)
          at Ext.define.setText (http://localhost:8080/cms/plugins/cms/resources/js/Ametys/cms/file/FileEditorTool.js:246:16)
          at Ext.define._loadFileCb (http://localhost:8080/cms/plugins/skineditor/resources/js/Ametys/plugins/skineditor/EditorTool.js:79:9)
          at null.<anonymous> (http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:789:29)
          at Array.forEach (native)
          at Object.Ext.Array.ExtArray.forEach.i [as forEach] (http://localhost:8080/cms/plugins/extjs6/resources/ext-all-debug.js:3079:30)
          at Ext.define._dispatch (http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:784:31)
      

            glefebvre Grégory Lefebvre (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: