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

Commit ce8c41c4 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Steve Kondik
Browse files

extmediaplayer: miscellaneous fix

Fix for issue 20936 reported by KW.

Change-Id: I512657696d99bbe64edfffa0ad7c687651a31acc
parent 6293525d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -104,7 +104,12 @@ JNIExtMediaPlayerListener::~JNIExtMediaPlayerListener()
void JNIExtMediaPlayerListener::notify(int msg, int ext1, int ext2, const Parcel *obj)
{
  JNIEnv *env = AndroidRuntime::getJNIEnv();
  if (env && obj && obj->dataSize() > 0)

  if (!env) {
      return;
  }

  if (obj && obj->dataSize() > 0)
  {
    if (mParcel != NULL)
    {