PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 26 → APP stopped
APP stopped
Started by JAVIER, Dec., 21 2019 4:30 PM - 2 replies
Registered member
1 message
Posted on December, 21 2019 - 4:30 PM
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?
Registered member
12 messages
Posted on January, 07 2020 - 4:52 PM
Happens the same on my side too, can't always reproduce :(
Posted on June, 07 2021 - 4:25 PM
It's happen the same to my app, did you find the solution?