Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 09c2cc73 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

Recorder: Avoid NPE when screen recording is about to finish

 * The following crash can be reproduced in some devices by
   starting a screen recording and then stopping it from the
   sticky notification:

    E AndroidRuntime: FATAL EXCEPTION: Encoder
    E AndroidRuntime: Process: org.lineageos.recorder, PID: 3187
    E AndroidRuntime: java.lang.NullPointerException: println needs a message
    E AndroidRuntime:        at android.util.Log.println_native(Native Method)
    E AndroidRuntime:        at android.util.Log.e(Log.java:240)
    E AndroidRuntime:        at org.lineageos.recorder.screen.EncoderDevice$EncoderRunnable.run(EncoderDevice.java:320)
    E AndroidRuntime:        at java.lang.Thread.run(Thread.java:764)
    I ActivityManager: Showing crash dialog for package org.lineageos.recorder u0

 * This also matches other try...catch blocks used in other parts
   of the code.

Change-Id: I8cd1d2f0be250603b791dd7be7db85f62b3ac26e
parent 518aa461
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment