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

Commit 9afdf4f0 authored by narinder Rana's avatar narinder Rana
Browse files

handle null pointer exception

parent bfa72c8b
Loading
Loading
Loading
Loading
Loading
+54 −49
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i(TAG, "onStartCommand()");

        try{
            CommonUtils.setServiceUnCaughtExceptionHandler(this);

            Bundle extras = intent.getExtras();
@@ -293,6 +294,10 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
            }else{
                Log.w(TAG, "Intent's extras is null.");
            }
        }catch (Exception ex){
            Log.e("Exception", ex.getMessage());
            ex.printStackTrace();
        }

        return super.onStartCommand(intent, flags, startId);
    }