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

Crash when trying to draw a card from empty draw pile #1

Open
wesen1 opened this issue Apr 2, 2016 · 0 comments
Open

Crash when trying to draw a card from empty draw pile #1

wesen1 opened this issue Apr 2, 2016 · 0 comments

Comments

@wesen1
Copy link

wesen1 commented Apr 2, 2016

The game will crash when you try to draw a card from an empty draw pile while there is only one card on the discard pile. This is the error log from android studio:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.smorgasbork.hotdeath.Card.toString(android.content.Context, boolean)' on a null object reference
at com.smorgasbork.hotdeath.Game.cardToString(Game.java:2229)
at com.smorgasbork.hotdeath.Game.advanceRound(Game.java:1015)
at com.smorgasbork.hotdeath.Game.runRound(Game.java:798)
at com.smorgasbork.hotdeath.Game.run(Game.java:823)

Another error is, that two AI players will continue playing forever if all cards are on their hands. Both errors happen because of the combination of "Mystery Wild" and "69" card (when a player has to draw 69 cards).

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

No branches or pull requests

1 participant