Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Getting error: cannot read property getPrimaryDisplay of null #1025

Closed
slaweet opened this issue Jan 8, 2018 · 1 comment
Closed

Getting error: cannot read property getPrimaryDisplay of null #1025

slaweet opened this issue Jan 8, 2018 · 1 comment
Assignees

Comments

@slaweet
Copy link
Contributor

slaweet commented Jan 8, 2018

Expected behaviour

The error should not happen.

Actual behaviour

Sometimes when launching Lisk Nano this error happens: cannot read property getPrimaryDisplay of null
image

Steps to reproduce

Not sure

@joerodrig
Copy link
Contributor

joerodrig commented Jan 8, 2018

minbrowser/min#170 looks like it's related and they were able to resolve it.

Quoting PalmerAL:

It appears that OS X is triggering the activate event before the app is ready for some reason, which means that electron.screen hasn't loaded yet.
According to the Electron docs, this event "usually happens when the user clicks on the application’s dock icon", but I guess it can happen at other times as well.

Their solution was to add an appIsReady flag at the app.on("activate" => ...) line here. You should be able to do something similar with the Lisk wallet here

@slaweet slaweet added the bug label Jan 9, 2018
@slaweet slaweet added the *easy label Jan 12, 2018
@slaweet slaweet self-assigned this Jan 12, 2018
slaweet added a commit that referenced this issue Jan 12, 2018
Fix error: cannot read property getPrimaryDisplay of null - Closes #1025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants