Building a road with no structures around its points throws a nullPointerException #34
Labels
No labels
bug
ci
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SlothBusters/gruppe02-slothbusters-projekt3-catan#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When a player tries to place a road on Points that don't have any settlements or cities a
nullPointerException
is thrown.Steps to reproduce
App
Cause
SiedlerBoard.getCorner()
returns null. Likely because whatever method calls it, can't find any Points that the player owns and that is currently being built on.Impact/Severity
High severity
Additionally, the following tests cannot complete because of this bug:
requirementPlayerResourceCardStockPlayerOneReadyToBuildFifthSettlement
requirementBuildRoad
requirementBuildSettlement
requirementTwoSettlementsSamePlayerSameFieldResourceCardPayout