Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: DisplayManager is null #1818

Open
Vishesh987 opened this issue Oct 9, 2020 · 1 comment
Open

NullPointerException: DisplayManager is null #1818

Vishesh987 opened this issue Oct 9, 2020 · 1 comment

Comments

@Vishesh987
Copy link

Vishesh987 commented Oct 9, 2020

C:\scrcpy>scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
C:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 13.9 MB/s (33622 bytes in 0.002s)
[server] INFO: Device: LENOVO Lenovo K33a42 (Android 7.0)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.AssertionError: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
        at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:30)
        at com.genymobile.scrcpy.Device.<init>(Device.java:57)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:23)
        at com.genymobile.scrcpy.Server.main(Server.java:225)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
        at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:17)
        ... 5 more
Press any key to continue...
@rom1v rom1v changed the title [server] ERROR: Exception on thread Thread[main,5,main] NullPointerException: DisplayManager is null Oct 9, 2020
@rom1v
Copy link
Collaborator

rom1v commented Oct 9, 2020

Ref #932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants