Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-04-05 22:09:12 +0000
committerKarsten Thoms2017-04-05 22:09:12 +0000
commit88b5ff073f8a6d4a62a6054a60e4a5248791e79d (patch)
tree2071c42e56499e57e9005b9366cbea1d5679e762
parent54d2789aa0f746c3f5a46d0c944cbd0b05ffe02b (diff)
downloadrt.equinox.p2-88b5ff073f8a6d4a62a6054a60e4a5248791e79d.tar.gz
rt.equinox.p2-88b5ff073f8a6d4a62a6054a60e4a5248791e79d.tar.xz
rt.equinox.p2-88b5ff073f8a6d4a62a6054a60e4a5248791e79d.zip
Bug 514807 - [memory] Use EMPTY_STEPS always for empty processingSteps
Change-Id: I829ded8e6a6cf5c10a30508d00710d1af56e3e79 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/ArtifactDescriptor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/ArtifactDescriptor.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/ArtifactDescriptor.java
index 38a8d3420..569b60e13 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/ArtifactDescriptor.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/p2/repository/artifact/spi/ArtifactDescriptor.java
@@ -49,7 +49,7 @@ public class ArtifactDescriptor implements IArtifactDescriptor, IMemberProvider
public ArtifactDescriptor(IArtifactDescriptor base) {
super();
key = base.getArtifactKey();
- processingSteps = base.getProcessingSteps();
+ setProcessingSteps(base.getProcessingSteps());
properties.putAll(base.getProperties());
repository = base.getRepository();
}
@@ -99,7 +99,7 @@ public class ArtifactDescriptor implements IArtifactDescriptor, IMemberProvider
}
public void setProcessingSteps(IProcessingStepDescriptor[] value) {
- processingSteps = value == null ? EMPTY_STEPS : value;
+ processingSteps = value == null || value.length == 0 ? EMPTY_STEPS : value;
}
public boolean equals(Object obj) {

Back to the top