Moodle for mobile

Error: cannot read property 'replace' of null

 
Picture of Dani Palou
Re: Error: cannot read property 'replace' of null
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Péter,

I looked at the code and there are several places where we call 'replace', but I think that the one that affected you could be this one:

notification.mobiletext.replace(/-{4,}/ig, '');

Maybe the app didn't receive the "mobiletext" property of one notification? It's  weird that it was fixed by removing the data :/

Cheers,

Dani

 
Average of ratings: -