summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2012-12-28 21:29:37 (EST)
committerPascal Rapicault2012-12-28 21:29:37 (EST)
commitc66fefa3d2da200af00d3fb4d52dd88a5c9247c4 (patch)
treefad687d050cf509d21dd5ef63c1812c37ae67d8a
parent3c86103c22de0e4eb12a1b23125f8c61bc8f6bc3 (diff)
downloadrt.equinox.p2-c66fefa3d2da200af00d3fb4d52dd88a5c9247c4.zip
rt.equinox.p2-c66fefa3d2da200af00d3fb4d52dd88a5c9247c4.tar.gz
rt.equinox.p2-c66fefa3d2da200af00d3fb4d52dd88a5c9247c4.tar.bz2
Bug 397231 - [engine] Memento should be initialized lazily v20121229-022937I20130101-0800
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/spi/ProvisioningAction.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/spi/ProvisioningAction.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/spi/ProvisioningAction.java
index ef88e2a..e8d8716 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/spi/ProvisioningAction.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/spi/ProvisioningAction.java
@@ -18,10 +18,12 @@ import org.eclipse.core.runtime.IStatus;
*/
public abstract class ProvisioningAction {
- private Memento memento = new Memento();
+ private Memento memento;
private Touchpoint touchpoint;
protected Memento getMemento() {
+ if (memento == null)
+ memento = new Memento();
return memento;
}