Project: titanium
Issue TIMOB-17666: CLI: ti info fails when invalid Titanium SDK is selected
There's a bug in "ti info" when an invalid Titanium SDK is selected: {code} ti config sdk.selected 3.6.0 ti info -t android {code} Android SDK Android Executable = /opt/android-sdk/tools/android SDK Path = /opt/android-sdk Android NDK NDK Path = /opt/android-ndk NDK Version = r10 (64-bit) {code} /Users/chris/appc/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ TypeError: Cannot call method 'join' of undefined at /Users/chris/appc/titanium/lib/commands/info.js:384:75 at Array.forEach (native) at /Users/chris/appc/titanium/lib/commands/info.js:376:29 at sections.push.Section.render (/Users/chris/appc/titanium/lib/commands/info.js:404:7) at /Users/chris/appc/titanium/lib/commands/info.js:633:14 at Array.forEach (native) at /Users/chris/appc/titanium/lib/commands/info.js:627:13 at /Users/chris/appc/titanium/node_modules/async/lib/async.js:232:13 at /Users/chris/appc/titanium/node_modules/async/lib/async.js:119:25 at /Users/chris/appc/titanium/node_modules/async/lib/async.js:24:16 --------------------------------------------- at exports.execFile (child_process.js:702:9) at exports.exec (child_process.js:589:18) at async.series.cached (/Users/chris/appc/titanium/node_modules/node-appc/lib/android.js:103:4) at /Users/chris/appc/titanium/node_modules/async/lib/async.js:551:21 at /Users/chris/appc/titanium/node_modules/async/lib/async.js:227:13 at iterate (/Users/chris/appc/titanium/node_modules/async/lib/async.js:134:13) at /Users/chris/appc/titanium/node_modules/async/lib/async.js:145:25 at /Users/chris/appc/titanium/node_modules/async/lib/async.js:229:17 {code}
Story points: 3