mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Continue but log NullPointerException in getMana
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -373,7 +373,14 @@ public class PlayerView extends GameEntityView {
|
||||
}
|
||||
|
||||
public int getMana(final byte color) {
|
||||
Integer count = getMana().get(color);
|
||||
Integer count = null;
|
||||
try {
|
||||
count = getMana().get(color);
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
count = null;
|
||||
}
|
||||
return count != null ? count.intValue() : 0;
|
||||
}
|
||||
private Map<Byte, Integer> getMana() {
|
||||
|
||||
Reference in New Issue
Block a user