Nexmo / comms-router

A server which allows you to route tasks to agents.
Apache License 2.0
21 stars 11 forks source link

NPE on create agent with no capabilities #98

Closed angel-popov closed 6 years ago

angel-popov commented 6 years ago

Description:Create new agent with capabilities null. Result:FAIL Request:curl -s -X POST 'http://192.168.1.166:8080/comms-router-web-pure/api/routers/VOfvMO5E7mFnEuFIyIXJg/agents' -H 'Content-type:application/json' -d "{\"address\":\"address\",\"capabilities\":null}" Response:{"error":{"code":"NullPointerException","description":"NULLS, NULLS EVERYWHERE"},"information":{"url":"https://www.google.bg/search?q=nulls+everywhere&tbm=isch"}}