ushahidi / tenfour-mobile

TenFour mobile app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read property 'length' of null

mackers opened this issue · comments

Steps to reproduce:

  • Create new group
  • Leave group name empty

Expected results:

  • I am notified that I need to enter a group name

Actual results:

  • An error occurs.

https://sentry.io/ushahidi/tenfour-pwa/issues/753952910/

TypeError: Cannot read property 'length' of null
  at createGroup (../../src/pages/group-edit/group-edit.ts:160:7)
  at Object.handleEvent (../../src/pages/group-edit/group-edit.ngfactory.js.pre-build-optimizer.js:73:25)
  at t.invokeTask (/polyfills.js:3:15660)
  at t.invokeTask (/polyfills.js:3:15581)
  at r.runTask (/polyfills.js:3:10834)
...
(10 additional frame(s) were not displayed)

@Eve-wanderi Can you test. I have added steps to reproduce.

Confirmed Passed QA.

image.png