summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/edit/setup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
index eb1a900..7c9e1e6 100644
--- a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
+++ b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
@@ -220,7 +220,7 @@ objects.mixin(EditorSetup.prototype, {
});
inputManager.addEventListener("InputChanged", function(evt) { //$NON-NLS-0$
var metadata = evt.metadata;
- sessionStorage.lastFile = PageUtil.hash();
+ sessionStorage.lastFile = metadata ? PageUtil.hash() : null;
var view = this.getEditorView(evt.input, metadata);
this.setEditor(view ? view.editor : null);
evt.editor = this.editor;