Android Question Debug Rapid B4A 6 BETA 1

Dey

Active Member
Licensed User
Longtime User
Hello guys
since yesterday now that I can not understand what happens
only in debug rapid

** Activity (main) Pause, UserClosed = false **
Main.Activity_Pause(UserClosed=false)
** Activity (vista_sale) Create, isFirst = true **
** Activity (vista_sale) Resume **
Class Update_Tav Initialize
Vista_sale NewHeght=727 OldHeght=0
Error occurred on line: 0 (Vista_Sale)
java.lang.NullPointerException: expected receiver of type BAR.Tablet.vista_600_asporto, but got null
at java.lang.reflect.Field.getField(Native Method)
at java.lang.reflect.Field.get(Field.java:266)
at anywheresoftware.b4a.shell.Shell.getStateAfterUserSubHelper(Shell.java:513)
at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:496)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:403)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:259)
at BAR.Tablet.vista_sale._vista_sale_carica(vista_sale.java:4299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:315)
at anywheresoftware.b4a.debug.Debug.CallSubNew(Debug.java:279)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.keywords.Common.CallSubDebug(Common.java:852)
at BAR.Tablet.update_tav._jresult_010_sale_richiesta(update_tav.java:1390)
at BAR.Tablet.update_tav._jobdone(update_tav.java:1235)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
<br class="Apple-interchange-newline"><div id="inner-editor"></div>

solved:)
Rapid problem in Debug
Dim List as List
Dim List1 as List
initialize etc ...
List1 = List:mad::mad:
only in debug rapid
 
Last edited:

Dey

Active Member
Licensed User
Longtime User
Can you post the exact code that caused this error?

B4X:
Sub DB_Asporto_Carico_All(Lst As List)

    If Lst.Size=0 Then Return
    LstAsportoAperto.Clear
    'This...
    LstAsportoAperto=Lst
    
     ' This is OK
    'Aggiungo in lista tav-asporto
    For Each tv As ts_tav In Lst
        LstAsportoAperto.Add(tv)
    Next
    Lst_AddAndOrderByTime
    ULV_Carica
End Sub

the problem and that the error is generated without loading the activity
thank you
 
Upvote 0
Top