HttpUtils internalcheckifcanstart null error

QLogic

Member
Licensed User
Longtime User
Greetings,

This error has been baffling my mind, and I'm sure there is a simple fix to this, but here is the situation.

Initially the activity loads perfectly. What I'm doing is loading an xml and parsing it into a listview. Each listview, except the header fields, open up a pdf. All of this works perfect.

Ok, now I press the home button and immediately come back to the program right where I left off on that activity. Once again, it works perfectly. I press the home button again. I wait about 3-4 min, open the program once again. It works perfectly. I press the home button again and wait 10 minutes then open up the program again. This time, I get a null reference error. What do I need to do to prevent this from happening? Here is the log:


LogCat connected to: (my galaxy nexus)
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (portal) Create, isFirst = true **
** Activity (portal) Resume **
** Activity (portal) Pause, UserClosed = true **
** Activity (collaterals) Create, isFirst = true **
** Activity (collaterals) Resume **
** Activity (collaterals) Pause, UserClosed = true **
** Activity (adapterslist) Create, isFirst = true **
** Activity (adapterslist) Resume **
** Activity (adapterslist) Pause, UserClosed = true **
** Activity (adapters) Create, isFirst = true **
** Activity (adapters) Resume **
** Activity (adapters) Pause, UserClosed = true **
** Activity (ql2400series) Create, isFirst = true **
Starting Job: Job1
** Activity (ql2400series) Resume **
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
** Service (httputilsservice) Destroy **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **
** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Resume **


** Activity (ql2400series) Pause, UserClosed = false **
** Activity (ql2400series) Create, isFirst = true **


Starting Job: Job1


httputils_internalcheckifcanstart (java line: 159)

java.lang.NullPointerException
at qlgc.pkg.httputils._internalcheckifcanstart(httputils.java:159)
at qlgc.pkg.httputils._downloadlist(httputils.java:78)
at qlgc.pkg.httputils._download(httputils.java:71)
at qlgc.pkg.ql2400series._activity_create(ql2400series.java:320)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at qlgc.pkg.ql2400series.afterFirstLayout(ql2400series.java:84)
at qlgc.pkg.ql2400series.access$100(ql2400series.java:16)
at qlgc.pkg.ql2400series$WaitForLayout.run(ql2400series.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)


at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException

Thanks in advance for anyone that can solve this for me.
 

QLogic

Member
Licensed User
Longtime User
Hi Erel,

My version number for the software is 1.80.

Thanks for looking into this.

EDIT: Just realized I can't send you the file on the site. My project zip size is about 4mb. Any other way I can send it to you?

Thanks.
 
Last edited:
Upvote 0

QLogic

Member
Licensed User
Longtime User
Hi Erel,

It is still happening. Please see attached screenshot.

Thanks.
 

Attachments

  • Screenshot_2012-03-13-09-30-22.jpg
    Screenshot_2012-03-13-09-30-22.jpg
    8.9 KB · Views: 173
Upvote 0

QLogic

Member
Licensed User
Longtime User
Hi Erel,

So here are the steps:

1. Tap Marketing Collaterals
2. Tap Adapters
3. Tap Fibre Channel Adapters
4. Tap QL 2400 series
5. Tap the home button
6. Wait about 10-15 min, do other normal android activity in the process like check email, view web, etc.
7. Come back to the QLogic app.
8. Error should produce.

I was able to reproduce the error on both the Galaxy Nexus and Droid Bionic.

Thanks again.
 
Upvote 0
Top