java.lang.RuntimeException: Unable to start service com.hyechon.etrackermv.ServiceClass@7566889 with Intent { cmp=com.hyechon.etrackermv/.ServiceClass }: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.hyechon.etrackermv.camera.CameraSourcePreview.start(com.google.android.gms.vision.CameraSource)' on a null object reference

Stack Overflow | Doyoung Jang | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I want to use camera on background service using mobile vision

    Stack Overflow | 7 months ago | Doyoung Jang
    java.lang.RuntimeException: Unable to start service com.hyechon.etrackermv.ServiceClass@7566889 with Intent { cmp=com.hyechon.etrackermv/.ServiceClass }: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.hyechon.etrackermv.camera.CameraSourcePreview.start(com.google.android.gms.vision.CameraSource)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.hyechon.etrackermv.camera.CameraSourcePreview.start(com.google.android.gms.vision.CameraSource)' on a null object reference

      at com.hyechon.etrackermv.ServiceClass.startCameraSource()
    2. com.hyechon.etrackermv
      ServiceClass.onStartCommand
      1. com.hyechon.etrackermv.ServiceClass.startCameraSource(ServiceClass.java:255)
      2. com.hyechon.etrackermv.ServiceClass.onStartCommand(ServiceClass.java:136)
      2 frames
    3. Android Platform
      ActivityThread.handleServiceArgs
      1. android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4062)
      1 frame