#vulnerable code 
                                protected boolean showTagBody( Permission p ) {
        boolean permitted = getSecurityContext().implies( p );
        return !permitted;
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                protected boolean showTagBody( Permission p ) {
        boolean permitted = getSecurityContext() != null && getSecurityContext().implies( p );
        return !permitted;
    }