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

Stack Overflow | punit1337 | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Null Pointer Exception while starting an activity

    Stack Overflow | 10 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