File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
PubNubUnity/Assets/PubNub/PlayModeTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2007,7 +2007,7 @@ public IEnumerator TestReconnect() {
20072007 case "join1" :
20082008 case "join2" :
20092009 if ( ! mea . Status . Category . Equals ( PNStatusCategory . PNConnectedCategory ) ) {
2010- if ( mea . PresenceEventResult . Event . Equals ( "join" ) ) {
2010+ if ( ( mea . PresenceEventResult != null ) && ( mea . PresenceEventResult . Event . Equals ( "join" ) ) ) {
20112011 bool containsUUID = false ;
20122012 if ( whatToTest . Equals ( "join1" ) ) {
20132013 containsUUID = mea . PresenceEventResult . UUID . Contains ( pnConfiguration . UUID ) ;
@@ -2032,7 +2032,7 @@ public IEnumerator TestReconnect() {
20322032 break ;
20332033 case "leave" :
20342034 if ( ! mea . Status . Category . Equals ( PNStatusCategory . PNConnectedCategory ) ) {
2035- if ( mea . PresenceEventResult . Event . Equals ( "leave" ) ) {
2035+ if ( ( mea . PresenceEventResult != null ) && ( mea . PresenceEventResult . Event . Equals ( "leave" ) ) ) {
20362036 bool containsUUID = mea . PresenceEventResult . UUID . Contains ( pnConfiguration2 . UUID ) ;
20372037 Assert . True ( containsUUID ) ;
20382038 Debug . Log ( containsUUID ) ;
You can’t perform that action at this time.
0 commit comments