codeforequity-at / botium-connector-watson

Botium Connector for IBM Watson Assistant https://www.botium.at
MIT License
7 stars 9 forks source link

empty array eavaluates to truthy. Should evaluate the length of array. #11

Closed zhenshuo closed 5 years ago

zhenshuo commented 5 years ago

When intents is empty, it throws "TypeError: Cannot read property 'intent' of undefined at BotiumConnectorWatson._processWatsonResponse"

codeforequity-at commented 5 years ago

Thanks, will be included in the next build!