Author: lindner
Date: Sun May 10 05:32:51 2009
New Revision: 773307

URL: http://svn.apache.org/viewvc?rev=773307&view=rev
Log:
SHINDIG-1053 | via Balaji Srinivasan | rpc.js getRelayUrl throws an exception 
if called for a target that is not configured.


Modified:
    incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js

Modified: 
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=773307&r1=773306&r2=773307&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js 
(original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js 
Sun May 10 05:32:51 2009
@@ -1452,7 +1452,7 @@
     getRelayUrl: function(targetId) {
       var url = relayUrl[targetId];
       // Some RPC methods (wpm, for one) are unhappy with schemeless URLs.
-      if (url.indexOf('//') == 0) {
+      if (url && url.indexOf('//') == 0) {
         url = document.location.protocol + url;
       }
       


Reply via email to