Android Question Weird bug which I suspect might not be my fault...

Discussion in 'Android Questions' started by Troberg, Feb 2, 2015.

  1. Troberg

    Troberg Well-Known Member Licensed User

    My JukeDroid (se my sig) works perfectly on all my devices, and all the devices of friends and family who use it. However, one user gave me a one star rating and a rather crappy review. However, he mailed me as well, and after I gave a polite answer and explained that I will try to fix it, he seemed like a nice enough guy.

    The thing is, on his device (Kitkat 4.4.4), he gets a force close immediately on startup. The messege is as follows:

    An error has occurred in sub:
    Java.Lang. numberformatex
    Exception : invalid double : " null "

    So, I thought: "This can't be hard to track down, I don't use many doubles". Probably just something I've forgot to give a value if there are no existing settings. A search later, I realized that JukeDroid doesn't use any doubles. Not one.

    So, I'm pretty much stumped. How to debug in a situation like this? I can't reproduce the problem, I can't relate the message to my code. It feels like the error happens far down in the java framework.

  2. NJDude

    NJDude Expert Licensed User

    That error means the code is expecting a number and it's getting a NULL.
    thedesolatesoul and lemonisdead like this.
  3. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Usually happens when reading data from files or something similar.
    You really need the full stacktrace to see where it happens.
    Atleast it happens on startup so you know the general area.
    NJDude likes this.
  4. Troberg

    Troberg Well-Known Member Licensed User

    Yeah, my suspicion is that it's an effect of not having settings on the first run. I'll poke around a bit and see what I can find. At least I always add a debug setting in my programs to delete all settings files on startup, so that should be easy enough to test.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice