java.lang.RuntimeException: Unable to start activity ComponentInfo{org.gnucash.android.devel/org.gnucash.android.ui.common.FormActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.sql.Timestamp.getTime()' on a null object reference

GitHub | rivaldi8 | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 526#237504866

    GitHub | 7 months ago | rivaldi8
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.gnucash.android.devel/org.gnucash.android.ui.common.FormActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.sql.Timestamp.getTime()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'long java.sql.Timestamp.getTime()' on a null object reference

      at org.gnucash.android.model.Recurrence.getCount()
    2. org.gnucash.android
      TransactionFormFragment.onActivityCreated
      1. org.gnucash.android.model.Recurrence.getCount(Recurrence.java:268)
      2. org.gnucash.android.model.Recurrence.getRuleString(Recurrence.java:164)
      3. org.gnucash.android.model.ScheduledAction.getRuleString(ScheduledAction.java:407)
      4. org.gnucash.android.ui.transaction.TransactionFormFragment.initializeViewsWithTransaction(TransactionFormFragment.java:503)
      5. org.gnucash.android.ui.transaction.TransactionFormFragment.onActivityCreated(TransactionFormFragment.java:355)
      5 frames
    3. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1983)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      6. android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)
      7. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:602)
      7 frames
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1223)
      2. android.app.Activity.performStart(Activity.java:5982)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2418)
      3 frames