diff --git a/src/app.js b/src/app.js index f970ddb079..8cb910ebe9 100644 --- a/src/app.js +++ b/src/app.js @@ -242,7 +242,9 @@ Please make a backup of your contracts and start using http://remix.ethereum.org }, (error, content, cleanUrl, type, url) => { if (!error) { - filesProviders[type].addReadOnly(cleanUrl, content, url) + if (filesProviders[type]) { + filesProviders[type].addReadOnly(cleanUrl, content, url) + } cb(null, content) } else { cb(error)