Committed by
Gerrit Code Review
Skip intents that aren't PointToPont
Change-Id: I9f856153557ff9dff4f070fe9a5d3b32dfe5e0e8
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -190,11 +190,11 @@ public class PtToPtIntentVirtualNetworkProvider extends AbstractProvider | ... | @@ -190,11 +190,11 @@ public class PtToPtIntentVirtualNetworkProvider extends AbstractProvider |
190 | 190 | ||
191 | @Override | 191 | @Override |
192 | public boolean isRelevant(IntentEvent event) { | 192 | public boolean isRelevant(IntentEvent event) { |
193 | - PointToPointIntent intent = (PointToPointIntent) event.subject(); | 193 | + if (event.subject() instanceof PointToPointIntent) { |
194 | + PointToPointIntent intent = (PointToPointIntent) event.subject(); | ||
194 | 195 | ||
195 | - // Only events that are for this appId are relevent. | 196 | + // Only events that are for this appId are relevent. |
196 | - if (intent.appId().equals(appId)) { | 197 | + return intent.appId().equals(appId); |
197 | - return true; | ||
198 | } | 198 | } |
199 | return false; | 199 | return false; |
200 | } | 200 | } | ... | ... |
-
Please register or login to post a comment