src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Query custom avatar services and returns the first found avtar.
     * @return the found avatar if any.
     */
Query custom avatar services and returns the first found avtar.
@return the found avatar if any.
Query custom avatar services and returns the first found avtar . @return the found avatar if any .
private byte[] searchForCustomAvatar(String address)
    {
        try
        {
            ServiceReference[] refs =  JabberActivator.bundleContext
                .getServiceReferences(CustomAvatarService.class.getName(), null);
            if(refs == null)
                return null;
            for(ServiceReference<?> r : refs)
            {
                CustomAvatarService avatarService =
                    (CustomAvatarService)JabberActivator
                        .bundleContext.getService(r);
                byte[] res = avatarService.getAvatar(address);
                if(res != null)
                    return res;
            }
        }
        catch(Throwable t)
        {
        }
        return null;
    }
private byte [ ] searchForCustomAvatar ( String address ) { try { ServiceReference [ ] refs = JabberActivator . bundleContext . getServiceReferences ( CustomAvatarService . class . getName ( ) , null ) ; if ( refs == null ) return null ; for ( ServiceReference < ? > r : refs ) { CustomAvatarService avatarService = ( CustomAvatarService ) JabberActivator . bundleContext . getService ( r ) ; byte [ ] res = avatarService . getAvatar ( address ) ; if ( res != null ) return res ; } } catch ( Throwable t ) { } return null ; }
Query custom avatar services and returns the first found avtar.
Query custom avatar services and returns the first found avtar .
// if something is wrong just return empty image