java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.miairline.model.PurchaseDao.getSuccessfulTransactions()' on a null object reference

Stack Overflow | punit1337 | 9 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

    Null Pointer Exception while starting an activity

    Stack Overflow | 9 months ago | punit1337
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.miairline.model.PurchaseDao.getSuccessfulTransactions()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.util.List com.miairline.model.PurchaseDao.getSuccessfulTransactions()' on a null object reference

      at com.miairline.utils.SalesUtil.calculateFlightLegPurchaseTransactions()
    2. com.miairline.utils
      SalesUtil.calculateFlightTransactionTotal
      1. com.miairline.utils.SalesUtil.calculateFlightLegPurchaseTransactions(SalesUtil.java:43)
      2. com.miairline.utils.SalesUtil.calculateFlightTransactionTotal(SalesUtil.java:35)
      2 frames
    3. com.miairline.settings
      SettingsFragment$22.onClick
      1. com.miairline.settings.SettingsFragment.startSalesReportActivity(SettingsFragment.java:1134)
      2. com.miairline.settings.SettingsFragment$22.onClick(SettingsFragment.java:1114)
      2 frames