summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys <Szymon.Brandys@pl.ibm.com>2014-04-24 16:34:18 +0200
committerSzymon Brandys <Szymon.Brandys@pl.ibm.com>2014-04-24 16:35:16 +0200
commit1f52f6da218f23b1fb153b1ab90486ee688e1f17 (patch)
tree4808a091f484e8ba6f7bd6126152f5aacfb6e14c
parenta4054b2efc5332f96e37bd06e5d29e3e149572f9 (diff)
downloadorg.eclipse.orion.client-origin/R6.0M1.zip
org.eclipse.orion.client-origin/R6.0M1.tar.gz
org.eclipse.orion.client-origin/R6.0M1.tar.bz2
Bug 433425 - Application deploy fails when there is no routeorigin/R6.0M1
-rw-r--r--bundles/org.eclipse.orion.client.cf/web/cfui/deploy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.cf/web/cfui/deploy.js b/bundles/org.eclipse.orion.client.cf/web/cfui/deploy.js
index 49a9613..6984910 100644
--- a/bundles/org.eclipse.orion.client.cf/web/cfui/deploy.js
+++ b/bundles/org.eclipse.orion.client.cf/web/cfui/deploy.js
@@ -144,7 +144,7 @@ define(["orion/bootstrap", "orion/xhr", 'orion/webui/littlelib', 'orion/Deferred
cFService.pushApp(selection, null, decodeURIComponent(deployResourceJSON.ContentLocation + deployResourceJSON.AppPath)).then(
function(result){
var appName = result.App.name || result.App.entity.name;
- var host = result.Route.host || result.Route.entity.host;
+ var host = (result.Route !== undefined ? (result.Route.host || result.Route.entity.host) : undefined);
postMsg({
CheckState: true,
ToSave: {