diff options
author | Szymon Brandys <Szymon.Brandys@pl.ibm.com> | 2014-04-24 16:34:18 +0200 |
---|---|---|
committer | skaegi <simon_kaegi@ca.ibm.com> | 2014-04-24 11:53:56 -0400 |
commit | fe8938a45b0dbadd227c04690ee047e1d0ec76b7 (patch) | |
tree | 4808a091f484e8ba6f7bd6126152f5aacfb6e14c | |
parent | 596ecbf9724d7a4567bea466e7f810f0aedf4331 (diff) | |
download | org.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.js | 2 |
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: {
|