java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.eric.myapp6.model.User_answer.getKonkoor_num()' on a null object reference

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

    delete a listview that retrieves from database

    Stack Overflow | 7 months ago | Erik_DA
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.eric.myapp6.model.User_answer.getKonkoor_num()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String com.example.eric.myapp6.model.User_answer.getKonkoor_num()' on a null object reference

      at com.example.eric.myapp6.database.DataBase.deleteUser()
    2. com.example.eric
      pasokh_azmoon$1.onClick
      1. com.example.eric.myapp6.database.DataBase.deleteUser(DataBase.java:140)
      2. com.example.eric.myapp6.exam_resault.pasokh_azmoon$1.onClick(pasokh_azmoon.java:50)
      2 frames