Search Unity

Strange Nullexception reported from Untiy Service Performance

Discussion in 'Editor & General Support' started by seno, Jan 24, 2018.

  1. seno

    seno

    Joined:
    Aug 5, 2010
    Posts:
    17
    Hello all,

    I am developing a real time multiplay racing game and recently seeing weird Nullexception from Unity performance.

    ------------------------------------------------------------------------------------------------------------------------------------------------
    REPORTS Count: 16157
    MESSAGE : NullReferenceException an hour ago
    NullReferenceException
    STACK TRACE
    MatchingScreen.OpenMathcingScreen (Boolean matchingInOfflineMode)
    MainScene.OnSuccessfulCall (NetworkFunc func, TotalEclipse.Network.NetworkParam param)
    TotalEclipse.Network.GameSparks.GSClientNetwork.ReceiveGetUser (TotalEclipse.Utility.EventParam param)
    ......
    ------------------------------------------------------------------------------------------------------------------------------------------------

    And following codes are where it triggered.

    ------------------------------------------------------------------------------------------------------------------------------------------------

    // MainScene.OnSuccessfulCall

    else if(func.Cat == CAT.PLAYDATA && func.Api == API.NONE)
    {
    NetworkManager.OpenEventBlock(false, func.FuncString);

    // Showing matching screen
    waitingPlayersPanel.OpenMathcingScreen(((!UserData.Data.IsNewbieEnded || !UserData.Data.IsHopelessEnded) && G.GameContext.MultiPlay.IsForNewbie));

    }

    // MatchingScreen.OpenMathcingScreen

    public void OpenMathcingScreen(bool matchingInOfflineMode = false)
    {
    if (gameObject == null || gameObject.activeSelf) return;

    myIsMatchingInOffline = matchingInOfflineMode;
    gameObject.SetActive(true);
    }

    ------------------------------------------------------------------------------------------------------------------------------------------------

    As you can see, there are not much codes that can trigger Nullexception.

    So, if anyone has similar experiences and clues, that will be very helpful.


    Thanks in advance.

    Danny