Crash on Samsung Galaxy E5

Hi guys,

I’m having a problem with a specific Android device, Samsung Galaxy E5 with Android Version 7.0.

So, in my app I have a Login Page with a Forgot Password link. When this link is clicked, the app is sent to the Forgot Password Page:

function forgotPasswordButton(){
	router.push("ForgotPassword", { username: username.value });

In the Forgot Password Page I receive this parameter:

var username = {
	return param.username;

The app builds but when it launches it crashes with this error

Error: JavaScript error in Pages/Login/ForgotPassword.ux line 60: Name: TypeError: Cannot read property 'map' of undefined
Error message: Uncaught TypeError: Cannot read property 'map' of undefined
File name: Pages/Login/ForgotPassword.ux
Line number: 60
Source line:      var username = {
JS stack trace: TypeError: Cannot read property 'map' of undefined
     at Object._tempMethod (Pages/Login/ForgotPassword.ux:60:32)
in Fuse.Reactive.ModuleInstance</usr/local/share/uno/Packages/Fuse.Reactive.JavaScript/1.2.1/$.uno:685>

I’ve tried several devices, including other Samsung phones, and they all work fine. Does anyone know what may be causing only this device to crash?

Thanks in advance.

Hey Ana,

it would help tremendously if there was more code to look at. Preferably, a complete, minimal reproduction that still fails with what you’re describing.

In general, this error does not look like something that should be limited to one particular device. It would be weird if it was, which makes this much more interesting.