I've got 2 classes (1 is a basic class, 2nd one extends Thread class) and I'm trying to access an object (class) that is initialized in my thread class on `run()` using `setText()`

```
public class TThread extends Thread{

        Patcher pf;

        public TThread(String string) {
            setName(string);
            start();
        }

        @Override
        public void run() {
            pf = new Patcher("Checking Serial key..."); //<=== Class initialized here in a separate thread
        }

        public void setText(String string) {
            pf.setText(string); //<=== Trying to access patcher here, throws NullPointerException
        }
}

```

This is how I call `TThread`

```
public void myCall(){
   TThread tpf = new TThread("pf thread");
   //some code later
   try{
       tpf.setText("blabla");
   }

```

The `pf.setText()` throws `NullPointerException` when I'm trying to access patcher from another thread. 

How can I get to that thread and access patcher from another class or this class?