thumbnailImages[i] = agent.getResizedThumbnail(pix,compositeWidth, compositeHeight);
if(pix != null) { thumbnailImages[i] = agent.getResizedThumbnail(pix,compositeWidth, compositeHeight); }
    public void loadCompositeImages()    {        BrowserEnvironment env = BrowserEnvironment.getInstance();        BrowserAgent agent = env.getBrowserAgent();                if(!multipleModeOn)        {            ThumbnailDataModel model = parentThumbnail.getModel();            Pixels pix = (Pixels)model.getAttributeMap().getAttribute("Pixels");                        setImage(agent.getResizedThumbnail(pix,compositeWidth,                                               compositeHeight));            setBounds(border);        }        else        {            ThumbnailDataModel[] models = parentThumbnail.getMultipleModels();            for(int i=0;i<models.length;i++)            {                Pixels pix =                    (Pixels)models[i].getAttributeMap().getAttribute("Pixels");                thumbnailImages[i] =                    agent.getResizedThumbnail(pix,compositeWidth,                                              compositeHeight);            }            setImage(thumbnailImages[parentThumbnail.getMultipleImageIndex()]);            setBounds(border);        }        repaint();    }