Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 201896 | Differences between
and this patch

Collapse All | Expand All

(-)src-test/org/eclipse/hyades/models/common/facades/behavioral/impl/HyadesTPFTestSuiteAdapter.java (-2 / +6 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2003, 2006 IBM Corporation and others.
2
 * Copyright (c) 2003, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 303-309 Link Here
303
			// we want to remove.
303
			// we want to remove.
304
			else if ( fragment instanceof BVRExecutionOccurrence )
304
			else if ( fragment instanceof BVRExecutionOccurrence )
305
			{
305
			{
306
				if ( behavior.equals(((BVRExecutionOccurrence)fragment).getOtherBehavior()))
306
				// bugzilla 201896, added the check for getOtherBehavior() returns null
307
				// if return is null, the invocation should be deleted since it no longer
308
				// contains a reference to an executable behavior
309
				TPFBehavior otherBehavior = ((BVRExecutionOccurrence)fragment).getOtherBehavior();
310
				if ( otherBehavior == null || behavior.equals(otherBehavior))
307
				{
311
				{
308
					fragments.add(fragment);
312
					fragments.add(fragment);
309
				}
313
				}

Return to bug 201896