Przeglądaj źródła

fixed coverity #163664 dead scope

Andreas Muelder 9 lat temu
rodzic
commit
9f97d8761e

+ 1 - 1
plugins/org.yakindu.sct.model.stext/src/org/yakindu/sct/model/stext/scoping/StextImportAwareScopeProvider.java

@@ -39,7 +39,7 @@ public class StextImportAwareScopeProvider extends ImportedNamespaceAwareLocalSc
 	@Override
 	@Override
 	protected List<ImportNormalizer> internalGetImportedNamespaceResolvers(final EObject context, boolean ignoreCase) {
 	protected List<ImportNormalizer> internalGetImportedNamespaceResolvers(final EObject context, boolean ignoreCase) {
 		List<ImportNormalizer> importedNamespaceResolvers = Lists.newArrayList();
 		List<ImportNormalizer> importedNamespaceResolvers = Lists.newArrayList();
-		List<ImportScope> importScopes = new ArrayList<ImportScope>();
+		List<ImportScope> importScopes = null;
 		if (context instanceof StateSpecification || context instanceof TransitionSpecification) {
 		if (context instanceof StateSpecification || context instanceof TransitionSpecification) {
 			importScopes = EcoreUtil2.getAllContentsOfType(getStatechart(context), ImportScope.class);
 			importScopes = EcoreUtil2.getAllContentsOfType(getStatechart(context), ImportScope.class);
 		} else {
 		} else {