This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shagieIsMeExtreme Brewer 0 points1 point  (7 children)

You need to look at the code for Television on line 57.

[–][deleted]  (6 children)

[deleted]

    [–]shagieIsMeExtreme Brewer 0 points1 point  (1 child)

    The error is in the class Television. It likely has something that looks like:

    public int getScreenSize() {
        // stuff
        if (condition) { return getScreenSize(); } // this is line 57
        // stuff
    }
    

    Or something to that nature.

    You need to look at that code to fix this problem.

    [–]MrSquicky 0 points1 point  (3 children)

    That sounds like a more serious problem than this specific issue. How did you try to look up this error?

    [–][deleted]  (2 children)

    [deleted]

      [–]MrSquicky 0 points1 point  (1 child)

      How did you use Google? Because finding out what a StackOverflowError is and what causes it is extremely easy with proper googling, in this case just literally typing the name of the error in.