Skip to content
Snippets Groups Projects
Commit b970f6d3 authored by Simon Barner's avatar Simon Barner
Browse files

- Prevent NPE

parent f11ec0dd
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: F406176F532AFCB05E651802C16E516B
* @ConQAT.Rating YELLOW Hash: F6BC9688C61B6F0787EEE9EF94046CCF
*/
public class EditingSupportFactory {
......@@ -207,7 +207,10 @@ public class EditingSupportFactory {
Set<String> choices = new TreeSet<String>();
for(T specification : (EList<T>)EcoreUtils.getChildrenWithType(root, clazz)) {
choices.add(valueProvider.getAnnotationValue(specification).toString());
Object annotationValue = valueProvider.getAnnotationValue(specification);
if(annotationValue != null) {
choices.add(annotationValue.toString());
}
}
currentInputChoiceMap.put(instanceKey, choices);
......
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