Skip to content

Crashes on navigating to home screen without selecting a module. #3

@Sreyas-108

Description

@Sreyas-108

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:

  1. Go to any other tab from the title bar.
  2. Click on Home tab on the title bar to move to home screen.
  3. 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
Screenshot_20190610-125551_c

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions