[jopensocial] r48 committed - catch error in person method

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 1, 2009, 2:38:05 PM9/1/09
to jopen...@googlegroups.com
Revision: 48
Author: atsn.ngs
Date: Tue Sep 1 11:36:45 2009
Log: catch error in person method
http://code.google.com/p/jopensocial/source/detail?r=48

Modified:
/trunk/src/jopensocial.js

=======================================
--- /trunk/src/jopensocial.js Thu Aug 20 01:54:07 2009
+++ /trunk/src/jopensocial.js Tue Sep 1 11:36:45 2009
@@ -471,7 +471,9 @@
if(!res) return callback(null);
var user = res[rky];
if(!user) return callback(null);
- var id = user.getId();
+ try {
+ var id = user.getId();
+ } catch(e) {}
if(!id) return callback(null);
if(res&&res[rky]) {
if(user.isViewer()) _viewerId = id;

Reply all
Reply to author
Forward
0 new messages