PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → APP stopped
APP stopped
Iniciado por JAVIER, 21,dic. 2019 16:30 - 2 respuestas
Miembro registrado
1 mensaje
Publicado el 21,diciembre 2019 - 16:30
When deleting a line in a loop is executed, it executes it without any problem, but when returning to the previous window, the following error occurs:

Message
Attempt to invoke virtual method 'int fr.pcsoft.wdjava.ui.champs.zr.WDZoneRepetee._getEtat()' on a null object reference

Java stack
fr.pcsoft.wdjava.ui.champs.zr.kc.e(Unknown Source:4)
fr.pcsoft.wdjava.ui.champs.zr.kc.onInterceptTouchEvent(Unknown Source:0)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2582)
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3011)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3011)
android.view.ViewGroup.cancelAndClearTouchTargets(ViewGroup.java:2861)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3795)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3817)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3817)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3817)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3817)
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3817)
android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:4098)
android.view.ViewRootImpl.doDie(ViewRootImpl.java:7450)
android.view.ViewRootImpl.die(ViewRootImpl.java:7410)
android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:520)
android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:451)
android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:210)
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5217)
android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:39)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
android.os.Handler.dispatchMessage(Handler.java:112)
android.os.Looper.loop(Looper.java:216)
android.app.ActivityThread.main(ActivityThread.java:7625)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Thread=id=1
name=main
priority=5
groupName=main

To perform the delete option, by swip I have the following code:

cyVlrVentas is currency = 0
cyVlrIVA is currency = 0
cyVlrDscto is currency = 0
nItems is int = 0

HReadSeek(Facturas,FacturaID,xFacturaId,hLockNo)
IF HFound() = True THEN
HExecuteQuery(QRY_ItemsFactura,hQueryDefault,xFacturaId)
HReadFirst(QRY_ItemsFactura,xFacturaId)
WHILE HOut(QRY_ItemsFactura) = False
cyVlrVentas += QRY_ItemsFactura.valorVenta
cyVlrIVA += QRY_ItemsFactura.valorIva
cyVlrDscto += QRY_ItemsFactura.valorDescuento
nItems ++
HReadNext(QRY_ItemsFactura, xFacturaId)
END

Facturas.totalItems = nItems
Facturas.totalVenta = cyVlrVentas
Facturas.totalIva = cyVlrIVA
Facturas.totalDescuento = cyVlrDscto
Facturas.totalNeto = cyVlrVentas + cyVlrIVA - cyVlrDscto
IF HModify(Facturas,hRecNumCurrent) = False THEN
HError(hErrCurrent)
END
END

Could anyone help me, please?
Miembro registrado
12 mensajes
Publicado el 07,enero 2020 - 16:52
Happens the same on my side too, can't always reproduce :(
Publicado el 07,junio 2021 - 16:25
It's happen the same to my app, did you find the solution?