Android Question Java error on cursor. rowcount

Discussion in 'Android Questions' started by Alberto Michelis, Jun 14, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi,
    I dont know how to deal with this error.
    I do a select, then verify the rowcount and then the java error, it can be seen in the atached image.
    The weird thing is the line has nothing to do with the code, even the CustomListView is not called.
    Help please...

    Error occurred on line: 197 (CustomListView)
    java.lang.NullPointerException
    at armi.portit.mposicion._updatelist(mposicion.java:799)
    at armi.portit.mposicion._activity_resume(mposicion.java:634)
    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:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:302)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at armi.portit.mposicion.afterFirstLayout(mposicion.java:106)
    at armi.portit.mposicion.access$100(mposicion.java:17)
    at armi.portit.mposicion$WaitForLayout.run(mposicion.java:78)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5692)
    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:1291)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
    at dalvik.system.NativeStart.main(Native Method)
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    The module name is incorrect (seems like a bug in the designer).
    What is the output of Log("sector: " + Cursor1.GetString("sector")) ?
     
  3. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    3
    I found the error but nothing to do with what the java error shows, it was in another module and another line.
    Is this a bug?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Might be. If the project is not too large then I would be happy to check it.
     
Loading...