protected String safeGetSenderId ( MessageEnvelope envelope ) { if ( envelope != null && envelope . getSender ( ) != null && envelope . getSender ( ) . getId ( ) != null ) { return envelope . getSender ( ) . getId ( ) ; } return "" ; }
Retrieves the sender ID from an envelope . It never returns null .