src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java
/**
     * Utility method throwing an exception if the stack is not properly
     * initialized.
     *
     * @throws IllegalStateException if the underlying stack is not registered
     * and initialized.
     */
Utility method throwing an exception if the stack is not properly
initialized.

@throws IllegalStateException if the underlying stack is not registered
and initialized.
Utility method throwing an exception if the stack is not properly initialized . @throws IllegalStateException if the underlying stack is not registered and initialized .
void assertConnected()
        throws IllegalStateException
    {
        if (parentProvider == null)
        {
            throw
                new IllegalStateException(
                        "The provider must be non-null and signed on the"
                            + " Jabber service before being able to"
                            + " communicate.");
        }
        if (!parentProvider.isRegistered())
        {
            if((currentStatus != null) && currentStatus.isOnline())
            {
                fireProviderStatusChangeEvent(
                    currentStatus,
                    parentProvider.getJabberStatusEnum().getStatus(
                            JabberStatusEnum.OFFLINE));
            }
            throw
                new IllegalStateException(
                        "The provider must be signed on the Jabber service"
                            + " before being able to communicate.");
        }
    }
void assertConnected ( ) throws IllegalStateException { if ( parentProvider == null ) { throw new IllegalStateException ( "The provider must be non-null and signed on the" + " Jabber service before being able to" + " communicate." ) ; } if ( ! parentProvider . isRegistered ( ) ) { if ( ( currentStatus != null ) && currentStatus . isOnline ( ) ) { fireProviderStatusChangeEvent ( currentStatus , parentProvider . getJabberStatusEnum ( ) . getStatus ( JabberStatusEnum . OFFLINE ) ) ; } throw new IllegalStateException ( "The provider must be signed on the Jabber service" + " before being able to communicate." ) ; } }
Utility method throwing an exception if the stack is not properly
 initialized.
Utility method throwing an exception if the stack is not properly initialized .
// if we are not registered but the current status is online // change the current status