This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Uncaught TypeError: Cannot read property '0' of null #7352
Copy link
Copy link
Closed
Labels
Description
[Enter steps to reproduce below:]
Cannot reproduce, but maybe the stack trace is still helpful. If not, this issue can also just be closed.
I did something like:
- Pasted some code.
- Used
ctrl + ]for adjusting the indention. - Pressed something like
ctrl + zandxat the same time (by accident).
The current line was cut (so probably ctrl+x happend first), but using ctrl+z did not restore it, instead I received the error message.
Solved it by re-pasting the code and paying attention to not press too many buttons at the same time ;-)
Atom Version: 0.210.0
System: Ubuntu 14.04.2
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property '0' of null
At /usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:881
TypeError: Cannot read property '0' of null
at /usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:881:18
at Array.forEach (native)
at _.each._.forEach (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:79:11)
at Object._.defaults (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:878:5)
at History.module.exports.History.popUndoStack (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/history.js:94:11)
at TextBuffer.module.exports.TextBuffer.undo (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:709:30)
at TextEditor.module.exports.TextEditor.undo (/usr/share/atom/resources/app.asar/src/text-editor.js:1142:19)
at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/usr/share/atom/resources/app.asar/src/text-editor-element.js:320:19)
at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app.asar/src/text-editor-element.js:288:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:238:29)
Commands
-0:57.2.0 core:move-down (atom-text-editor.editor.is-focused)
-0:56.4.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
-0:55.9.0 core:paste (atom-text-editor.editor.is-focused)
-0:55 core:save (atom-text-editor.editor.is-focused)
-0:45.6.0 core:cut (atom-text-editor.editor.is-focused)
2x -0:44.3.0 core:backspace (atom-text-editor.editor.is-focused)
-0:41.4.0 core:paste (atom-text-editor.editor.is-focused)
-0:38.4.0 editor:outdent-selected-rows (atom-text-editor.editor.is-focused)
2x -0:33.3.0 editor:indent-selected-rows (atom-text-editor.editor.is-focused)
-0:28.6.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
-0:28.6.0 editor:newline (atom-text-editor.editor.is-focused)
2x -0:16.9.0 core:backspace (atom-text-editor.editor.is-focused)
-0:12.5.0 core:cut (atom-text-editor.editor.is-focused)
7x -0:12.5.0 core:undo (atom-text-editor.editor.is-focused)
31x -0:02.8.0 core:redo (atom-text-editor.editor.is-focused)
2x -0:01.2.0 core:undo (atom-text-editor.editor.is-focused)
Config
{
"core": {
"disabledPackages": [
"symbols-view",
"linter",
"simple-drag-drop-text",
"drag-drop-text",
"language-c",
"atom-beautify",
"autocomplete-python",
"Sublime-Style-Column-Selection",
"word-jumper",
"linter-clang"
],
"themes": [
"one-dark-ui",
"lucas-dark-syntax"
],
"destroyEmptyPanes": false
},
"editor": {
"invisibles": {},
"showIndentGuide": true,
"showInvisibles": true,
"preferredLineLength": 100,
"softWrap": true,
"tabLength": 4,
"fontSize": 11
}
}Installed Packages
# User
atom-ctags, v4.1.2
autocomplete-clang, v0.7.0
block-travel, v1.0.2
docblockr, v0.7.2
hex, v0.6.2
highlight-line, v0.11.0
highlight-selected, v0.10.1
language-cmake, v0.1.4
language-cpp, v0.0.1
lucas-dark-syntax, v0.0.0
minimap, v4.10.0
minimap-bookmarks, v0.1.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.3
minimap-highlight-selected, v4.3.0
tabs-to-spaces, v0.11.0
# Dev
No dev packages
Activity
izuzak commentedon Jun 22, 2015
Thanks for the report, @lczech. ⚡
👋 @maxbrunsfeld -- do you 👀 anything in that stack trace which might indicate what went down? Pinging you because this happened in
popUndoStackbut not sure if some package might caused this somehow.maxbrunsfeld commentedon Jul 10, 2015
I think this will be fixed in 1.0.3.
andrewufrank commentedon Mar 6, 2017
i pasted something and then asked for a buil-project (stack).
the copy stacktrace to clipboard seems not to work. i wonder if this is related?
i guess this is just a reminder that this error message can still occur in 1.14.3.
the error message repeated (even after a close and reopen of atom). an issue could be that the focus was on the cabal file, not a .hs file. the next crash, when saving after a change in a .hs file is attached - perhaps it helps.
the issue is perhaps, that i have a problem in the cabal file (noparse). no i fixed this and the error message does not appear anymore. (wish: cabal parser would give better error message!)
Atom: 1.14.3 x64
Electron: 1.3.13
OS: Debian GNU/Linux
Thrown From: haskell-ghc-mod package 1.19.7
Stack Trace
Haskell-ghc-mod: ghc-mod command check failed with error Error
Commands
Non-Core Packages
lock commentedon May 5, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!