java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference

Stack Overflow | Daksh | 3 months ago
  1. 0

    java.util.Date null with ProGuard

    Stack Overflow | 3 months ago | Daksh
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference
  2. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference

    GitHub | 6 months ago | justdave
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference
  3. 0

    crash trying to view fuel graphs / General Forum / Fuelio - mileage tracking app for Android

    userecho.com | 6 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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 'long java.util.Date.getTime()' on a null object reference

    at java.util.Calendar.setTime()
  2. Java RT
    DateFormat.format
    1. java.util.Calendar.setTime(Calendar.java:1197)
    2. java.text.SimpleDateFormat.formatImpl(SimpleDateFormat.java:527)
    3. java.text.SimpleDateFormat.format(SimpleDateFormat.java:829)
    4. java.text.DateFormat.format(DateFormat.java:314)
    4 frames
  3. com.daksh.tmdbsample
    MovieDetailBinding.b
    1. com.daksh.tmdbsample.data.model.Movie.a(Unknown Source)
    2. com.daksh.tmdbsample.databinding.MovieDetailBinding.b(Unknown Source)
    2 frames
  4. android.databinding
    ViewDataBinding$5.onViewAttachedToWindow
    1. android.databinding.ViewDataBinding.a(Unknown Source)
    2. android.databinding.ViewDataBinding$6.run(Unknown Source)
    3. android.databinding.ViewDataBinding$5.onViewAttachedToWindow(Unknown Source)
    3 frames
  5. Android Platform
    ActivityThread.main
    1. android.view.View.dispatchAttachedToWindow(View.java:14535)
    2. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
    3. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    4. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    5. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    6. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    7. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    8. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    9. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
    10. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1372)
    11. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
    12. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6023)
    13. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    14. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    15. android.view.Choreographer.doFrame(Choreographer.java:606)
    16. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    17. android.os.Handler.handleCallback(Handler.java:739)
    18. android.os.Handler.dispatchMessage(Handler.java:95)
    19. android.os.Looper.loop(Looper.java:148)
    20. android.app.ActivityThread.main(ActivityThread.java:5461)
    20 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames