processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
339 stars 91 forks source link

Unhandled exception on Cancel when creating New File #289

Closed Akarshit closed 7 years ago

Akarshit commented 7 years ago

This exception is thrown when Cancel is clicked after selecting New File from the menu.

TypeError: Cannot read property 'replace' of null
    at ViewModel.appConfig.methods.newFile (file:///Users/akarshitwal/Documents/p5.js-editor/public/js/main.js:952:105)
    at MenuItem.fileMenu.append.gui.MenuItem.click (file:///Users/akarshitwal/Documents/p5.js-editor/public/js/main.js:1206:13)
    at MenuItem.handleEvent (menuitem.js:200:12)
    at IDWeakMap.global.__nwObjectsRegistry.handleEvent (node.js:786:26)
[69111:1211/181643:INFO:CONSOLE(952)] "Uncaught TypeError: Cannot read property 'replace' of null", source: file:///Users/akarshitwal/Documents/p5.js-editor/public/js/main.js (952)
lmccart commented 7 years ago

fixed with https://github.com/processing/p5.js-editor/pull/290