[Solved] ToString on Object generate error


It seems as if the reason you’re getting an error is because the userReadables is initially set to a null string. in the catch, you have

catch(Exception e) {
   userReadables = null;
}

and since the userReadables is already null, it’s calling the Exception before it does anything else. Make it something related to the program. Change it to

String userReadables = " ";

that way it will at least be registered as a space, and not null.

Hope this helps!

4

solved ToString on Object generate error