Browse Source

fix harmless exception if value is null

master
Miguel Freitas 11 years ago
parent
commit
77ddb79d81
  1. 2
      twister_io.js

2
twister_io.js

@ -206,9 +206,11 @@ function getFullname( username, item ){
item.text(username); item.text(username);
getProfileResource( username, "fullname", undefined, getProfileResource( username, "fullname", undefined,
function(args, value) { function(args, value) {
if( value ) {
value.replace(/^\s+|\s+$/g, ''); value.replace(/^\s+|\s+$/g, '');
if( value.length ) if( value.length )
args.item.text(value); args.item.text(value);
}
}, {item: item} ); }, {item: item} );
} }

Loading…
Cancel
Save