Skip to content
Snippets Groups Projects
Commit 679fe8dc authored by Drahomír Karchňák's avatar Drahomír Karchňák
Browse files

#432 Fixed NPE on finishing Pursuit game.

parent 50e048e8
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,9 @@ public class PositionHelper {
}
private Vector2 getRotatedPosition(RotationDefinition rotationDefinition, Point position) {
//TODO - Refactor (Added null check, cos it caused crashing on my Nexus 5X)
if(rotationDefinition == null) return new Vector2(position.x, position.y);
switch (rotationDefinition) {
case UP:
//x = y, y = 1-x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment