Skip to content

Uncaught TypeError: Cannot read property '0' of null #3

Open
@centroine

Description

@centroine

[Enter steps to reproduce:]

  1. After installing atom-solidity-comment
  2. Click packages> atom-solidity-comment>Toggle in the menu

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Mac OS X 10.14.3
Thrown From: solidity-comments package 2.1.1

Stack Trace

Uncaught TypeError: Cannot read property '0' of null

At /Users/centroine/.atom/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/lib/contract/contract-comment.js:56

TypeError: Cannot read property '0' of null
    at ContractComment.updateComment (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/lib/contract/contract-comment.js:56:64)
    at ContractComment.insertComment (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/lib/contract/contract-comment.js:38:16)
    at /packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:52:25)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:106:30)
    at /packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:97:14
    at Array.forEach (<anonymous>)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:96:10)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:113:7)
    at /packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:97:14
    at Array.forEach (<anonymous>)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:96:10)
    at Object.visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:113:7)
    at generate (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:43:33)
    at generateCommentsFromText (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:28:10)
    at Object.run (/packages/solidity-comments/lib/atom-solidity-comments.js:29:25)
    at HTMLElement.atomSolidityCommentsToggle (/packages/solidity-comments/lib/atom-solidity-comments.js:19:51)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:348492)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:669184)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:676568)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -4:41.2.0 core:confirm (input.hidden-input)
     -1:31.5.0 find-and-replace:find-previous (input.hidden-input)
  3x -1:00.6.0 find-and-replace:select-all (input.hidden-input)
     -0:08.1.0 atom-solidity-comments:toggle (input.hidden-input)

Non-Core Packages

atom-solidity-linter 0.0.11 
autocomplete-solidity 0.3.4 
busy-signal 2.0.0 
intentions 1.1.5 
language-solidity 0.1.1 
linter 2.0.0 
linter-solidity 0.5.0 
linter-ui-default 1.7.1 
solidity-comments 2.1.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions