In my main application class I have an object of JTextArea(say txtArea). I have created two another threads in main_application program. The two threads I have created is for reading and writing in serial port. Now I want to put the serial port read buffer data into an JTextArea object. So I need to pass the JTextArea object created in main_application to read-thread so that read-thread can put the read output to JTextArea.
But after doing like this I am facing null pointer access problem. When I check the JTextArea object in main_application its not null but after passing to thread i checked its null. I dont know how it happens.... if any geek can help me i will be happy....
Thanks , Surjya