Changeset 622bdbc


Ignore:
Timestamp:
Mar 12, 2011 4:25:14 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, compt_changes, gec13, master, mei-id, mei-rt0-n, mei_rt0, mei_rt2, mei_rt2_fix_1, meiyap-rt1, meiyap1, rt2, tvf-new-xml
Children:
cfcdcb4b
Parents:
f6789db
Message:

Safety first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/net/deterlab/abac/CredentialGraph.java

    rde63a31 r622bdbc  
    6464     */
    6565    public void remove_credential(Credential cred) {
    66         g.removeEdge(cred);
     66        if (g.containsEdge(cred))
     67            g.removeEdge(cred);
    6768        m_dirty = true;
    6869    }
     
    186187     * also cleared.
    187188     */
    188     protected void clear_old_edges() {
    189         for (Credential i: derived_edges)
     189    protected void clear_old_edges() { 
     190        for (Credential i: derived_edges)
    190191            g.removeEdge(i);
    191192        derived_edges = new HashSet<Credential>();
Note: See TracChangeset for help on using the changeset viewer.