992492e Don't crash if no NameIdPolicy is requested

1 file Authored by rcritten 7 years ago, Committed by puiterwijk 7 years ago,
    Don't crash if no NameIdPolicy is requested
    
    This fixes two problems:
    
    1. Logging was done before a None check was completed
    2. The None check was insufficient because the whole object
       could be None
    
    https://fedorahosted.org/ipsilon/ticket/189
    
    Signed-off-by: Rob Crittenden <rcritten@redhat.com>
    Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>