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 <rickbarrette@gmail.com>
This commit is contained in:
2012-05-31 11:27:23 -04:00
parent 23ea7b7e2d
commit 522339f0c8

View File

@@ -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));