Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE after returning to started game from home button #6

Open
ghostbuster91 opened this issue Jan 4, 2015 · 2 comments
Open

NPE after returning to started game from home button #6

ghostbuster91 opened this issue Jan 4, 2015 · 2 comments
Labels

Comments

@ghostbuster91
Copy link
Collaborator

How to reproduce:
1.start app
2.start game
3.when will be not your turn click home button ( this could be in player's turn too )
4.return to the game

stacktrace:
//java.lang.NullPointerException: Attempt to invoke interface method 'java.util.ArrayList com.google.android.gms.games.multiplayer.turnbased.TurnBasedMatch.getParticipantIds()' on a null object reference
//at com.ordonteam.hanabi.activity.GameActivity.getPlayersNumber(GameActivity.groovy:105)
//at com.ordonteam.hanabi.activity.GameActivity.initiateMatchResult(GameActivity.groovy:96)
//at java.lang.reflect.Method.invoke(Native Method)
//at java.lang.reflect.Method.invoke(Method.java:372)
//at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
//at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
//at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1208)
//at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1075)
//at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
//at groovy.lang.Closure.call(Closure.java:423)
//at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:51)
//at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:103)

@OrdonTeam
Copy link
Owner

Please check if this bug still occurs.
Possible fix in 516ae82

@ghostbuster91
Copy link
Collaborator Author

it still occurs.
Procedure to reproduce: start match, when it wont be your turn click sqaure, circle, square -> hanabi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants