java.lang.RuntimeException: Unable to create service org.traccar.client.TrackingService: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

GitHub | tananaev | 8 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

    Fix crash from Google Play

    GitHub | 8 months ago | tananaev
    java.lang.RuntimeException: Unable to create service org.traccar.client.TrackingService: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

      at org.traccar.client.TrackingController.<init>()
    2. org.traccar.client
      TrackingService.onCreate
      1. org.traccar.client.TrackingController.<init>(TrackingController.java:66)
      2. org.traccar.client.TrackingService.onCreate(TrackingService.java:88)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleCreateService(ActivityThread.java:2775)
      2. android.app.ActivityThread.access$1800(ActivityThread.java:151)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:135)
      6. android.app.ActivityThread.main(ActivityThread.java:5268)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
      2 frames