Changeset 985


Ignore:
Timestamp:
02/21/2011 01:08:30 PM (9 years ago)
Author:
michael.kriegel
Message:

small bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libs/cmion/cmionMain/src/cmion/level2/CompetencyExecution.java

    r912 r985  
    247247                CompetencyExecutionPlan plan = runningCompetencies.get(competency); 
    248248                 
     249                // if there is no plan, this competency must have been started in another way (e.g. background) 
     250                // in that case we are not interested in it here 
     251                if (plan == null) return; 
     252                 
    249253                // mark the competency as not executing anymore 
    250254                runningCompetencies.remove(competency); 
     
    277281                // get the plan that this competency is part of realizing 
    278282                CompetencyExecutionPlan plan = runningCompetencies.get(competency); 
     283         
     284                // if there is no plan, this competency must have been started in another way (e.g. background) 
     285                // in that case we are not interested in it here 
     286                if (plan == null) return; 
    279287                 
    280288                // mark the competency as not executing anymore 
     
    310318                CompetencyExecutionPlan plan = runningCompetencies.get(competency); 
    311319                 
     320                // if there is no plan, this competency must have been started in another way (e.g. background) 
     321                // in that case we are not interested in it here 
     322                if (plan == null) return; 
     323                 
    312324                // mark the competency as not executing anymore 
    313325                runningCompetencies.remove(competency); 
Note: See TracChangeset for help on using the changeset viewer.