diff --git a/openvidu-react-native/App.js b/openvidu-react-native/App.js index 41698dca..e1b0aa35 100644 --- a/openvidu-react-native/App.js +++ b/openvidu-react-native/App.js @@ -176,9 +176,11 @@ export default class App extends Component { getNicknameTag(stream) { // Gets the nickName of the user - if (stream.connection && JSON.parse(stream.connection.data) && JSON.parse(stream.connection.data).clientData) { - return JSON.parse(stream.connection.data).clientData; - } + try { + if (stream.connection && JSON.parse(stream.connection.data) && JSON.parse(stream.connection.data).clientData) { + return JSON.parse(stream.connection.data).clientData; + } + } catch (error) { } return ''; }