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 | 6 months ago
  1. 0

    I want to use camera on background service using mobile vision

    Stack Overflow | 6 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
  2. 0
    Use 'dialog' to access views from custom_layout layout.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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