German InAppBilling Library java.lang.nullpointerexeption

nobbi59

Active Member
Licensed User
Longtime User
Hallo,

Ich bekomme beim Debugging dieses Codes den oben genannten Fehler, erkenne aber nicht warum :(

B4X:
Sub listedown_DownloadCompleted(ServerPath As String, Success As Boolean)
    t1 = File.ReadString(File.DirDefaultExternal, "email.txt")
    liste = File.ReadString(File.DirDefaultExternal, "liste.txt")
    If liste.Contains(t1) Then
      Msgbox("Die EMail Adresse wird bereits verwendet.", "Error")
      StartActivity(reg1)
    Else
      File.WriteString(File.DirDefaultExternal, "name.txt", name.Text)
      datum = DateTime.Date(DateTime.Now)
      File.WriteString(File.DirDefaultExternal, "regdate.txt", datum)
      If produkt = "3" Then
          billing.Manager.RequestPayment(Activity, "3monate", " ")
      End If
      If produkt = "6" Then
          billing.Manager.RequestPayment(Activity, "6monate", " ")
      End If
      If produkt = "12" Then
          billing.Manager.RequestPayment(Activity, "12monate", " ")
      End If
    End If

Danke im Vorraus :)
 

nobbi59

Active Member
Licensed User
Longtime User
*the error is on the line: billing.manager.requestpayment ...
 
Top