Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null pointer dereference #1119

Closed
RobertLarsen opened this issue Mar 24, 2015 · 5 comments
Closed

null pointer dereference #1119

RobertLarsen opened this issue Mar 24, 2015 · 5 comments

Comments

@RobertLarsen
Copy link

$ pm2 describe 0
Describing process with pid 0 - name CegoJabberServices
....
Revision control metadata

/media/data/software/node-v0.10.32/lib/node_modules/pm2/node_modules/cli-table/lib/index.js:108
          if (typeof value_cell === 'object' && value_cell.length) {
                                                          ^
TypeError: Cannot read property 'length' of null
    at /media/data/software/node-v0.10.32/lib/node_modules/pm2/node_modules/cli-table/lib/index.js:108:59
    at Array.forEach (native)
    at Table.toString (/media/data/software/node-v0.10.32/lib/node_modules/pm2/node_modules/cli-table/lib/index.js:95:16)
    at Object.UX.describeTable (/media/data/software/node-v0.10.32/lib/node_modules/pm2/lib/CliUx.js:97:24)
    at /media/data/software/node-v0.10.32/lib/node_modules/pm2/lib/CLI.js:1225:12
    at Array.forEach (native)
    at /media/data/software/node-v0.10.32/lib/node_modules/pm2/lib/CLI.js:1224:18
    at /media/data/software/node-v0.10.32/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
    at Parser.<anonymous> (/media/data/software/node-v0.10.32/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
    at Parser.emit (events.js:95:17)
@jshkurti jshkurti self-assigned this Mar 24, 2015
jshkurti added a commit that referenced this issue Mar 24, 2015
@jshkurti
Copy link
Contributor

Does it happen all the time or randomly ?
npm i -g git://github.com/Unitech/PM2#development
Should be fixed :)

@RobertLarsen
Copy link
Author

It happens all the time.
I tried the development branch, but it still happens:

TypeError: Cannot read property 'length' of null
    at /opt/node-v0.12.0/lib/node_modules/pm2/node_modules/cli-table/lib/index.js:108:59
    at Array.forEach (native)
    at Table.toString (/opt/node-v0.12.0/lib/node_modules/pm2/node_modules/cli-table/lib/index.js:95:16)
    at Object.UX.describeTable (/opt/node-v0.12.0/lib/node_modules/pm2/lib/CliUx.js:114:24)
    at /opt/node-v0.12.0/lib/node_modules/pm2/lib/CLI.js:1241:12
    at Array.forEach (native)
    at /opt/node-v0.12.0/lib/node_modules/pm2/lib/CLI.js:1240:18
    at /opt/node-v0.12.0/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
    at Parser.<anonymous> (/opt/node-v0.12.0/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
    at Parser.emit (events.js:107:17)

@jshkurti
Copy link
Contributor

I did change something.
npm i -g git://github.com/Unitech/PM2#development and try again please :)

@RobertLarsen
Copy link
Author

MUCH better. Thanks :-)

@jshkurti
Copy link
Contributor

Glad I could help you, it will be on the next release ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants