if (prefix != null && !prefix.equals(frame.getUniquePrefix())) {
if (prefix != null && frame != null && !prefix.equals(frame.getUniquePrefix())) {
    public boolean dispatch(String name, String[] values) {        boolean erg = false;        int dividerIndex = name.indexOf(SConstants.UID_DIVIDER);        String prefix = null;        // kein Alias        if (dividerIndex > 0) {            prefix = name.substring(0, dividerIndex);            name = name.substring(dividerIndex+1);            // make ImageButtons work in Forms ..            if (name.endsWith(".x") || name.endsWith(".X"))                name = name.substring(0, name.length()-2);            if ( DEBUG ) {                System.out.print("dispatch " + prefix +                                 SConstants.UID_DIVIDER + name + " : ");                System.out.print("prefix " + prefix + " , ");                System.out.print("name " + name + " , ");                for ( int i=0; i<values.length; i++ )                    System.out.print(values[i] + " , ");                System.out.println();            }        }        ArrayList l = (ArrayList)listener.get(name);        if (l != null) {            SGetListener gl = (SGetListener)l.get(0);            SFrame frame = gl.getParentFrame();            if (prefix != null && !prefix.equals(frame.getUniquePrefix())) {                debug("parameter '" + name + "' is out of date");                // do not fire those outdated events but enforce immediate reload of the frame                System.err.println("outdated events from frame " + frame.getTitle());                SessionManager.getSession().getReloadManager().markDirty(frame);                // hack! We claim, that we have fired events although we haven't, because we want                // send the reload manager frame, not the frameset                return true;            }            for (int i=0; i<l.size(); i++) {                gl = (SGetListener)l.get(i);                for (int j=0; j<values.length; j++)                    gl.getPerformed(name, values[j]);                erg = true;            }        }        return erg;    }