Describe the bug
App crashes when navigated back to the home screen by selecting the home tab from the title bar. In reference to, an issue on flutter.
To Reproduce
Steps to reproduce the behavior:
- Go to any other tab from the title bar.
- Click on Home tab on the title bar to move to home screen.
- App crashes completely.
Stacktrace
E/AndroidRuntime(29369): FATAL EXCEPTION: main
E/AndroidRuntime(29369): Process: com.liquidgalaxy.lg_controller, PID: 29369
E/AndroidRuntime(29369): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.Display.getDisplayId()' on a null object reference
E/AndroidRuntime(29369): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3808)
E/AndroidRuntime(29369): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(29369): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(29369): at android.app.ActivityThread.main(ActivityThread.java:6626)
E/AndroidRuntime(29369): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(29369): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/AndroidRuntime(29369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Expected behavior
Should open home screen normally.
Screenshots

Smartphone (please complete the following information):
- Device: Moto G5 Plus.
- OS: Android 8.1.0
- Version: API level 27.
Additional context
Crash is not observed when it navigates to home screen on selecting a module.
Describe the bug
App crashes when navigated back to the home screen by selecting the home tab from the title bar. In reference to, an issue on flutter.
To Reproduce
Steps to reproduce the behavior:
Stacktrace
E/AndroidRuntime(29369): FATAL EXCEPTION: main
E/AndroidRuntime(29369): Process: com.liquidgalaxy.lg_controller, PID: 29369
E/AndroidRuntime(29369): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.Display.getDisplayId()' on a null object reference
E/AndroidRuntime(29369): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3808)
E/AndroidRuntime(29369): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(29369): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(29369): at android.app.ActivityThread.main(ActivityThread.java:6626)
E/AndroidRuntime(29369): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(29369): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/AndroidRuntime(29369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Expected behavior
Should open home screen normally.
Screenshots

Smartphone (please complete the following information):
Additional context
Crash is not observed when it navigates to home screen on selecting a module.