Pass fields from factory to another class

There is a factory -


...
public IncomingFieldFactory(MainView app) {
    	hbnContainer = new HbnContainer<Incoming>(Incoming.class, app);
    }
    @Override
    public Field createField(Container container, Object itemId,
            Object propertyId, Component uiContext) {

        final Field f = super.createField(container, itemId, propertyId, uiContext);
        if(f != null) {
            if(f instanceof TextField) {
                TextField tf = (TextField) f;
                tf.setWidth("100%");
            }
            
            if(propertyId.equals("incomingDate")) { 
                ((DateField) f).setResolution(DateField.RESOLUTION_MIN);
                f.setWidth("100%");
            }
            
            if(propertyId.equals("incomingBalance")) { 
                f.setEnabled(false);
            }
            
            if(propertyId.equals("incomingValue")) {
                incomingValueT = f;
               ...
...

    public Field getIncomingValueT() {
    	return incomingValueT;
    }
...

I want to pass some fields to another class, to manage them (enable / disable), but get NullPointerException when call -


...
Field f = incomingFieldFactory.getIncomingValueT(); 
f.setEnabled(false);
...

What am I doing wrong? :glare:
I would be very grateful for the information!

Thank you!

Does anyone know? It is very important for me.

it seems that the answer is here -

http://stackoverflow.com/questions/13027035/pass-fields-from-factory-to-another-class