]> Pileus Git - ~andy/spades/blobdiff - src/org/pileus/spades/Cards.java
Fix null pointers and pile parsing
[~andy/spades] / src / org / pileus / spades / Cards.java
index 1cf4c3e0542bce9c3e20f26c7489e854d0c659d1..8703c87a4b0b67df59359b3176abd6171195a4e3 100644 (file)
@@ -429,6 +429,8 @@ public class Cards extends GLSurfaceView implements GLSurfaceView.Renderer
 
        private void drawCard(String name)
        {
+               if (!this.index.containsKey(name))
+                       return;
                int idx   = this.index.get(name);
                int front = this.face[idx];
                int back  = this.red;