commit | d10f96b70a6effe2f2a62d16277e85b34c19cc97 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan.herrmann@berlin.de> | Thu Oct 31 16:09:13 2019 +0100 |
committer | Stephan Herrmann <stephan.herrmann@berlin.de> | Thu Oct 31 16:11:46 2019 +0100 |
tree | 245d0a6c1d00dafed3315e0860103a540d474d5e | |
parent | e8898779d7b5378075668c79ccc85dac7e698dbc [diff] |
Bug 552487 - empty aspectBinding may trigger NPE
diff --git a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java index cf95903..769768e 100644 --- a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java +++ b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java
@@ -135,6 +135,10 @@ IConfigurationElement[] teams = currentBindingConfig.getChildren(TEAM); int teamCount = teams.length; for (int j = 0; j < teams.length; j++) if (teams[j].getAttribute(CLASS) == null) teamCount --; + if (teamCount == 0) { + log(IStatus.WARNING, "aspectbinding of "+aspectBundleId+" for base "+baseBundleId+" defines no team class"); + continue; + } AspectBinding binding = new AspectBinding(aspectBundleId, aspectBundle, baseBundle,