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

Stack Overflow | punit1337 | 6 months ago
  1. 0

    Null Pointer Exception while starting an activity

    Stack Overflow | 6 months ago | punit1337
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.miairline.model.PurchaseDao.getSuccessfulTransactions()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    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 '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