Skip to content
Snippets Groups Projects
Commit abc0e486 authored by Nicholas Pacini's avatar Nicholas Pacini
Browse files

now getRate returns an empty String by default (helpful in Acceleo)

parent d76a9ae9
No related branches found
No related tags found
No related merge requests found
......@@ -237,9 +237,15 @@ public class TransformationUtil {
}
public String getRate(Transition tr){
String rate = "";
Stereotype stereo = tr.getAppliedStereotype(INTERNALFAULTQN);
InternalFault intF = (InternalFault) tr.getStereotypeApplication(stereo);
return intF.getOccurrence();
if(stereo != null){
InternalFault intF = (InternalFault) tr.getStereotypeApplication(stereo);
if (intF.getOccurrence() != null){
rate = intF.getOccurrence();
}
}
return rate;
}
public List<Classifier> getSubsystems(Classifier parent){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment