tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

Crash with autocompletion #59

Closed FokkeZB closed 10 years ago

FokkeZB commented 10 years ago

To reproduce:

  1. Run triple
  2. Type Ti.UI.createWindow(
  3. Hit 'tab'

Crashlog:

/usr/local/lib/node_modules/triple/lib/triple.js:406
        line = match[0];
                    ^
TypeError: Cannot read property '0' of null
    at /usr/local/lib/node_modules/triple/lib/triple.js:406:15
    at Interface.completer (readline.js:83:20)
    at Interface._tabComplete (readline.js:359:8)
    at Interface._ttyWrite (readline.js:779:14)
    at ReadStream.onkeypress (readline.js:99:10)
    at ReadStream.EventEmitter.emit (events.js:98:17)
    at emitKey (readline.js:1095:12)
    at ReadStream.onData (readline.js:840:14)
    at ReadStream.EventEmitter.emit (events.js:95:17)
    at ReadStream.<anonymous> (_stream_readable.js:745:14)