From 522339f0c8d70aeda559e92c132c76278a2d7447 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Thu, 31 May 2012 11:27:23 -0400 Subject: [PATCH] Added a check for the roll mod value, before tring to append it's information onto the roll text view closes #20 Signed-off-by: Ricky Barrette --- .../android/ExaltedDice/RollHistoryDatabaseAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/RollHistoryDatabaseAdapter.java b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/RollHistoryDatabaseAdapter.java index 31957dc..5c5b23a 100644 --- a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/RollHistoryDatabaseAdapter.java +++ b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/RollHistoryDatabaseAdapter.java @@ -95,7 +95,7 @@ public class RollHistoryDatabaseAdapter extends BaseAdapter { holder.mRoll.setText("Rolled: "+roll.getAsInteger(Database.KEY_NUMBER) + " "+roll.getAsString(Database.KEY_D_TYPE)); - if(isRollModEnabled) + if(isRollModEnabled && roll.containsKey(Database.KEY_MOD)) holder.mRoll.append(" "+ roll.getAsString(Database.KEY_MOD).replace("'", "")); holder.mStats.setText(roll.getAsString(Database.KEY_LOG));