Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #169 from bmvakili/MinorFixDDLEntry
Browse files Browse the repository at this point in the history
quick and dirty commit to fix issue; see the following forum post det…
  • Loading branch information
Javier Gamarra committed Sep 1, 2015
2 parents 7fe7ea4 + cd7ba8a commit 73b14a0
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ public void writeToParcel(Parcel destination, int flags) {
}

public String getValue(String field) {
return ((HashMap<String,String>) _values.get("modelValues")).get(field);
String value = null;
Object valueObject = _values.get("modelValues");
HashMap valueHashmap = (HashMap) valueObject;
Object fieldValueObject = valueHashmap.get(field);
String fieldValueObjectString = fieldValueObject.toString();
value = fieldValueObjectString;
//return ((HashMap<String,String>) _values.get("modelValues")).get(field).toString();
return value;
}

public Object getAttributes(String field) {
Expand All @@ -69,4 +76,4 @@ private DDLEntry(Parcel in) {

private Map<String, Object> _values;

}
}

0 comments on commit 73b14a0

Please sign in to comment.