Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Re: java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null

    The error message shows that the null value is being passed to the StringTokenizer's constructor.
    Can you add code there to detect that null value and to not pass it to the constructor?

    A...
  2. Re: java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null

    Did you find the String with the null value?

    What version of java are you using?
  3. Re: java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null

    What String has the null value? Do some debugging to find the String with the null value.
    Then backtrack in the code to see why the String does not have a valid value.
  4. Re: java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null

    Please do not post images. Text can not be copied from an image for responses or for doing a search.
    Copy the text of the error message and paste it here.

    What String variable has the null...
  5. Re: java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null

    Please copy the full text of the error message and paste it here so we can see where the error is.

    Where is the String variable given a value so that it is not null?
Results 1 to 5 of 5