summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys <Szymon.Brandys@pl.ibm.com>2014-04-24 16:34:18 +0200
committerskaegi <simon_kaegi@ca.ibm.com>2014-04-24 11:53:56 -0400
commitfe8938a45b0dbadd227c04690ee047e1d0ec76b7 (patch)
tree4808a091f484e8ba6f7bd6126152f5aacfb6e14c
parent596ecbf9724d7a4567bea466e7f810f0aedf4331 (diff)
downloadorg.eclipse.orion.client-origin/stable_20140422.zip
org.eclipse.orion.client-origin/stable_20140422.tar.gz
org.eclipse.orion.client-origin/stable_20140422.tar.bz2
Bug 433425 - Application deploy fails when there is no routeorigin/stable_20140422
-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: {