#vulnerable code 
                                protected boolean showTagBody( String roleName ) {
        return getSecurityContext().hasRole( roleName );
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                protected boolean showTagBody( String roleName ) {
        return getSecurityContext() != null && getSecurityContext().hasRole( roleName );
    }