Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerric Tubbs2013-09-09 21:04:28 +0000
committerRoberto E. Escobar2013-09-17 23:30:04 +0000
commit3d98cdb3285df58086df51c603f312cb54563476 (patch)
tree060b474c9ddab17a656bdc7ea3623c2194276f11 /plugins
parent34f68674b281b00f2b6d255755ac874a5dfeced8 (diff)
downloadorg.eclipse.osee-3d98cdb3285df58086df51c603f312cb54563476.tar.gz
org.eclipse.osee-3d98cdb3285df58086df51c603f312cb54563476.tar.xz
org.eclipse.osee-3d98cdb3285df58086df51c603f312cb54563476.zip
bug[ats_AQPZU]: Commit logic bug
Attempting to commit a branch to destination and having new artifacts without new relations causes an exception when it shouldn't. Change-Id: I051b1aed4e915308f3cc9811282b3e43aa73e830 Signed-off-by: Derric Tubbs <derric.l.tubbs@boeing.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/change/MissingChangeItemFactoryImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/change/MissingChangeItemFactoryImpl.java b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/change/MissingChangeItemFactoryImpl.java
index eeb0aa4b4c..f5f75ee3da 100644
--- a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/change/MissingChangeItemFactoryImpl.java
+++ b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/change/MissingChangeItemFactoryImpl.java
@@ -152,7 +152,9 @@ public class MissingChangeItemFactoryImpl implements MissingChangeItemFactory {
relationChangesToAdd.put(data.getArtIdA(), data);
}
}
- toReturn.addAll(createExistingRelations(cancellation, session, destTx, relationChangesToAdd));
+ if (!relationChangesToAdd.isEmpty()) {
+ toReturn.addAll(createExistingRelations(cancellation, session, destTx, relationChangesToAdd));
+ }
}
return toReturn;
}

Back to the top