I am creating a multi-threaded web server. When I run the client I receive a NullPointException. Why is this happening and what can be done to solve it?
Here you can read exception message and the stack trace:
Here I am initializing the Executor which are handling the threads:
The origin of the String questions[1] is in the Broadcaster class:
I am using a get and set method to make it possible for the other inner class to work with
Here are the Strings
and
created:
The NullPointerException occurs in the HandleValidation class:
class HandlleValidation extends
Thread {
The problem is caused by this line:
The Setter:
I have tried to include as little of the code as possible to describe the problem. I may be able to give more information if requested!